Talked about sed's model of line-at-a-time stream editing. Discussed some basic sed commands: s, d. Gave mail header/body extraction examples.
Talked about how sed scripts can be put into a file and ran as a command, e.g., a command to change all instances of geisel to seuss:
bash-2.03$ cat seussify #!/bin/sed -f s/geisel/seuss/g bash-2.03$ ./seussify < seussify #!/bin/sed -f s/seuss/seuss/g bash-2.03$
I briefly talked about the data types in perl, another common scripting language. It's richer than the shells in data types -- having scalars, arrays, and hashes -- but is a bit more cumbersome to use for process creation/control.
email@example.com, last updated