Skip to content

Commit c01a731

Browse files
committed
Corrections after the course.
1 parent b7d6704 commit c01a731

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

presentation/linux_bash_metacentrum_course.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ \section{Introduction}
111111
\begin{frame}{Materials to help you\ldots}
112112
\begin{itemize}
113113
\item Download the presentation from \url{https://soubory.trapa.cz//linuxcourse/linux_bash_metacentrum_course.pdf}
114-
\item Download the scripts and toy data from \url{https://soubory.trapa.cz//linuxcourse/scripts.zip}
114+
\item Download the scripts and toy data from \url{https://soubory.trapa.cz/linuxcourse/scripts.zip}
115115
\begin{itemize}
116116
\item \alert{Note:} Open the scripts in some \alert{good} text editor (slide~\ref{editors}) -- showing syntax highlight, line numbers, etc. (\alert{NO} Windows notepad); the files are in UTF-8 encoding and with UNIX end of lines (so that too silly programs like Windows notepad won't be able to open them correctly)
117117
\item \alert{Never ever} open any script file in software like MS~Word -- they destroy quotation marks and other things by ``typographical enhancements'' making the script unusable
@@ -1819,7 +1819,7 @@ \subsection{Timing}
18191819
* * * * * /usr/bin/command
18201820
10 22 1 * * # 1st day in month, 23:11
18211821
0 */3 * * * # Every 3 hours
1822-
0 11 * * 6 # Every Sunday, 12:00
1822+
0 11 * * 0 # Every Sunday, 12:00
18231823
30 3 */2 * * # Every even day, 4:31
18241824
*/15 * * * 0,4 # At Sun and Fri every 15 min
18251825
# Columns are separated by any number of spaces
@@ -2040,7 +2040,7 @@ \subsection{Manipulations}
20402040
sed '5s/...' # range (e.g. 1,7) right before "s" ("$" for last line)
20412041
sed '1~2n;s/F/R/g' # Work on every second line, starting by line 1
20422042
sed -n '2~10p' # Print every 10th line, starting with line 2
2043-
seq 1 100 | sed -n '2~10p' # Example of above pattern (see seq 1 100)
2043+
seq 1 100 | sed -n '2~10p' # Example of above pattern (see "seq 1 100")
20442044
# Replace first TAB (\t) on each line by new line (\n)
20452045
sed 's/\t/\n/' textfile
20462046
sed 's/find/replace/g' somedirectory/* # Work on all files in directory
@@ -2714,7 +2714,7 @@ \subsection{Loops}
27142714
while ...; do # Start cyclus as you need
27152715
commands...
27162716
if [condition]; then # If something happens
2717-
break; fi # End up the cyclus and continue by following commands
2717+
break; fi # End up the cyclus and continue by following commands
27182718
while read TEXTLINE; do # Run cyclus on text file
27192719
commands...
27202720
done < text_file_to_process.txt

scripts/interactive5.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ while getopts "hvi:o:a:" INITARGS; do
2727
echo "OK, Name for output file was provided: \"$OPTARG\". Proceeding..."
2828
OUTPUTFILE="$OPTARG" # $OPTARG always contains value of parameter
2929
else
30-
echo "Error! File \"$OPTARG\" doesn't exist or isn't readable!"
30+
echo "Error! No output file name provided!"
3131
echo
3232
exit 1
3333
fi

0 commit comments

Comments
 (0)