Solutions to Lab 3 ------------------ 1. mv eastcoast/* midwest/ 2. a) ls */*/*n* b) ls */*/n* c) ls */*/*[aeiou]*[aeiou]*[aeiou]* d) ls -d */* 3. date | cut -c25-28 4. a) 'cat oldfile' simply dumps the contents of "oldfile" on the terminal. b) 'cat oldfile newfile' takes two arguments, dumps the contents of "oldfile", followed by the contents of "newfile", on the terminal. c) 'cat oldfile > newfile' dumps the contents of "oldfile" but not on the terminal. The ">" part of the command, redirects it to the file "newfile", so that "newfile" now contains the contents of "oldfile". In other words, this is the equivalent of a UNIX 'cp' command. d) 'cat > newfile' is just like the previous command but there are no arguments to cat. Let us do a 'man cat' to see what it means to run 'cat' without arguments. You will see that this simply takes input from the terminal and prints it back onto the terminal. When you type this command, you will notice that UNIX is 'waiting' (for your input). Keep typing something and press "Ctrl-D" to exit. Now, when you do a 'cat newfile' you will see that we have essentially created 'newfile' and written into it.