Part V. pipes and commands

Table of Contents

18. I/O redirection
stdin, stdout, and stderr
output redirection
> stdout
output file is erased
noclobber
overruling noclobber
>> append
error redirection
2> stderr
2>&1
output redirection and pipes
joining stdout and stderr
input redirection
< stdin
<< here document
<<< here string
confusing redirection
quick file clear
practice: input/output redirection
solution: input/output redirection
19. filters
cat
tee
grep
cut
tr
wc
sort
uniq
comm
od
sed
pipe examples
who | wc
who | cut | sort
grep | cut
practice: filters
solution: filters
20. basic Unix tools
find
locate
date
cal
sleep
time
gzip - gunzip
zcat - zmore
bzip2 - bunzip2
bzcat - bzmore
practice: basic Unix tools
solution: basic Unix tools
21. regular expressions
regex versions
grep
print lines matching a pattern
concatenating characters
one or the other
one or more
match the end of a string
match the start of a string
separating words
grep features
preventing shell expansion of a regex
rename
the rename command
perl
well known syntax
a global replace
case insensitive replace
renaming extensions
sed
stream editor
interactive editor
simple back referencing
back referencing
a dot for any character
multiple back referencing
white space
optional occurrence
exactly n times
between n and m times
bash history