@@ -1638,7 +1638,7 @@ \subsection{Searching}
16381638 # Delete empty directories within 'doc' directory
16391639 find doc/ -type d -empty -execdir rmdir '{}' \;
16401640 # Copy all *.sh files from /home to ~/scripts
1641- find /home -name "*.sh" -exec cp '{}' ~/scripts/
1641+ find /home -name "*.sh" -exec cp '{}' ~/scripts/ \;
16421642 # Search for file long_text.txt (exact name) in your home directory
16431643 find ~ -name long_text.txt -type f -print
16441644 # Find in current directory files from 1 to 100 MB
@@ -2848,8 +2848,8 @@ \subsection{AWK}
28482848 # Precede each line by its line number for all files together, with TAB
28492849 # (i.e. print line number (NR) and then whole original line ($ 0 ))
28502850 awk '{print NR "\t" $ 0 }' diff_test_file_*
2851- # Substitute "a" with "XXX" ONLY for lines which contain "The "
2852- awk '/The /{gsub(/a/, "XXX" )}; 1 ' diff_test_file_1 .txt
2851+ # Substitute "a" with "XXX" ONLY for lines which contain "the "
2852+ awk '/the /{gsub(/a/, "XXX" )}; 1 ' diff_test_file_1 .txt
28532853 \end {bashcode}
28542854\end {frame}
28552855
@@ -4233,7 +4233,7 @@ \subsection{Packages}
42334233 \item Package name \texttt {*.rpm }
42344234 \item \texttt {dnf install \textit {package } } --- install \textit {package }
42354235 \item \texttt {dnf remove \textit {package } } --- remove \textit {package }
4236- \item \texttt {dbf check-update } --- refresh repositories, check for updates
4236+ \item \texttt {dnf check-update } --- refresh repositories, check for updates
42374237 \item \texttt {dnf upgrade } --- upgrade packages
42384238 \item \texttt {dnf search \textit {term } } --- search \textit {term }
42394239 \item \texttt {dnf autoremove } --- clear packages
0 commit comments