You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
\item For files compressed by \texttt{lzma} or \texttt{lzma2} (\texttt{xz}, \texttt{lzma}) use \texttt{lzcat}, \texttt{lzdiff}, \texttt{lzegrep}, \texttt{lzfgrep}, \texttt{lzgrep}, \texttt{lzless}, \texttt{lzmore},~\ldots
3070
3070
\item Sometimes these variants are used automatically when user works with compressed file
3071
3071
\item\texttt{mc} can also do the job
3072
+
\item These tools sometimes don't have all options of the \enquote{standard} applications
3072
3073
\end{itemize}
3073
3074
\end{frame}
3074
3075
@@ -3146,13 +3147,13 @@ \subsection{Comparisons}
3146
3147
\begin{itemize}
3147
3148
\item Saves difference between two files --- it can be later used as template to modify original file
3148
3149
\item Single patch file can contain changes from multiple files
3149
-
\item Patch format from \texttt{diff -u} is common way how to send someone changes, improvements,~\ldots
3150
+
\item Patch file from \texttt{diff -u} is common way how to send changes, improvements,~\ldots
\item Implementation in \texttt{vim}, \texttt{sed}, \texttt{grep}, \texttt{awk} and \texttt{perl} and among various UNIX systems is almost same, but not identical --- can be confusing\ldots
3301
3302
\item\textbf{grep}, \textbf{sed} and \textbf{vim} \alert{require escaping} of \alert{\texttt{+}}, \alert{\texttt{?}}, \alert{\texttt{\{}}, \alert{\texttt{\}}}, \alert{\texttt{(}} and \alert{\texttt{)}} by backslash \alert{\texttt{\textbackslash}} (e.g. \texttt{\textbackslash +}, see also next slides)
3303
+
\begin{itemize}
3304
+
\item These characters have special meaning (see further) --- consider if you search for e.g. literal \texttt{+} or not (and then you can use it's special meaning)
3305
+
\end{itemize}
3302
3306
\item\textbf{egrep} (extended version, launched as \texttt{grep -E \ldots} or \texttt{egrep \ldots}), \textbf{sed} with extended reg exp (\texttt{sed -r}) and \textbf{perl} \alert{do not} require escaping (simply just e.g. \texttt{+}, not \texttt{\textbackslash +})
3303
3307
\item Mastering regular expressions require practicing -- solve practical problems and see their power
0 commit comments