cat numbers1.txt cat numbers2.txt
diffto compare numbers1.txt and numbers2.txt
diff numbers1.txt numbers2.txtThe output is hard to read, because it contains instructions for the Unix
patchutility to convert the first file given at the command line to the second.
diff -y numbers1.txt numbers2.txtThis output is much easier to read.
fileon on a shell script
fileon a Python scrips
fileon the contents of your home directory
cp /home/ghoffman/course_files/it244_files/red_sox.txt .Make sure you include the dot, ., or you will get an error message.
grep Win red_sox.txt
grep Win red_sox.txt | grep vsHere, the first instance of grep is the source, and the second is a filter.
grep Win red_sox.txt | grep vs | sort -nrThis is a pipeline, with three separate processes, one for each command.
dateto show today's date using the format YYYY-MM_DD
whereis pythonNote that
whereisreveals many more files.
who am i
fingerto see who else is connected to your current host
fingeron your own Unix username
finger YOUR_UNIX_USERNAMEIn place of YOUR_UNIX_USERNAME, you must put your Unix username.
fingeron the first name "Glenn"
pwdIf not, see me.
diffup to and including
nanoinside your script.
bash ex6.sh > /dev/nullRunning ex6.sh this way will only print error messages.
~ghoffman/it244_test/ex06.shWhen the script asks if you are ready for more, hit Return or Enter.