Due Wednesday September 13
echo fooShow how you would redirect the output to standard error.
echo foo bar #bazWhat do you expect to happen? What does happen? Why?
paste file1 file2 | awk '$1==$2'Use this to find the list of all palindromes used in Alice.
basename foo.c .cwill strip the ".c" and return "foo".
Another useful facility in bash is the backquote evaluation. If I type:
ls `echo foo.bar | rev`(note: those are backquotes not forward quotes) bash will first evaluate what's within the backquote (in this case returning rab.oof) and then pass it as an argument to the function ls.
Use these two facilities to write a command pipeline that strips a given prefix off a given filename.