Math-Tuttle-OSX:279lect10-1 smtuttle$ rematch-play.sh amoobmoocmoodmoo
pre-if: <amoobmoocmoodmoo>
${BASH_REMATCH[0]} is <amoobmoocmood>
${BASH_REMATCH[1]} is <moo>
${BASH_REMATCH[2]} is <moo>
${BASH_REMATCH[3]} is <moo>
Math-Tuttle-OSX:279lect10-1 smtuttle$ rematch-play.sh "How are you, babe? The calculus is fine, dude."
pre-if: <How are you, babe? The calculus is fine, dude.>
${BASH_REMATCH[0]} is <are you, babe? The calculus is fine, dud>
${BASH_REMATCH[1]} is <re you, ba>
${BASH_REMATCH[2]} is <e? The cal>
${BASH_REMATCH[3]} is <ulus is fine, du>
Math-Tuttle-OSX:279lect10-1 smtuttle$ rematch-play.sh "a bhowcmoodwhatever"
pre-if: <a bhowcmoodwhatever>
${BASH_REMATCH[0]} is <a bhowcmood>
${BASH_REMATCH[1]} is < >
${BASH_REMATCH[2]} is <how>
${BASH_REMATCH[3]} is <moo>
Math-Tuttle-OSX:279lect10-1 smtuttle$ rematch-play.sh bc
pre-if: <bc>
Math-Tuttle-OSX:279lect10-1 smtuttle$ rematch-play.sh abc
pre-if: <abc>
Math-Tuttle-OSX:279lect10-1 smtuttle$ rematch-play.sh amoobmoocd
pre-if: <amoobmoocd>
Math-Tuttle-OSX:279lect10-1 smtuttle$ clicker-rematch.sh "moo oh yeah moo37moo"
pre-if: moo oh yeah moo37moo
<moo oh yeah moo37moo>
< oh yeah >
<37>
<3>
Math-Tuttle-OSX:279lect10-1 smtuttle$ clicker-rematch.sh "one moo two moo three moo four moo"
pre-if: one moo two moo three moo four moo
<moo two moo three moo four moo>
< two moo three >
< four >
<3>
Math-Tuttle-OSX:279lect10-1 smtuttle$ ls
#279lect10-1-projected.txt#
279lect10-1-projected.txt
279lect10-1-projected.txt~
279lect10-1.odt
279lect10-1.pdf
clicker-rematch.sh
rematch-play.sh
rematch-play.sh~
tryIt
tryIt.tar
unix-stuff.txt
Math-Tuttle-OSX:279lect10-1 smtuttle$ gzip rematch-play.sh
Math-Tuttle-OSX:279lect10-1 smtuttle$ ls
#279lect10-1-projected.txt#
279lect10-1-projected.txt
279lect10-1-projected.txt~
279lect10-1.odt
279lect10-1.pdf
clicker-rematch.sh
rematch-play.sh.gz
rematch-play.sh~
tryIt
tryIt.tar
unix-stuff.txt
Math-Tuttle-OSX:279lect10-1 smtuttle$ gunzip rematch-play.sh.gz
Math-Tuttle-OSX:279lect10-1 smtuttle$ ls
#279lect10-1-projected.txt#
279lect10-1-projected.txt
279lect10-1-projected.txt~
279lect10-1.odt
279lect10-1.pdf
clicker-rematch.sh
rematch-play.sh
rematch-play.sh~
tryIt
tryIt.tar
unix-stuff.txt
Math-Tuttle-OSX:279lect10-1 smtuttle$ ls -l rematch-play.sh
-rwx------ 1 smtuttle smtuttle 232 Oct 23 15:26 rematch-play.sh
Math-Tuttle-OSX:279lect10-1 smtuttle$ ls -lh rematch-play.sh
-rwx------ 1 smtuttle smtuttle 232B Oct 23 15:26 rematch-play.sh
Math-Tuttle-OSX:279lect10-1 smtuttle$ gzip rematch-play.sh
Math-Tuttle-OSX:279lect10-1 smtuttle$ ls -lh rematch-play.sh.gz
-rwx------ 1 smtuttle smtuttle 196B Oct 23 15:26 rematch-play.sh.gz
Math-Tuttle-OSX:279lect10-1 smtuttle$ gunzip rematch-play.sh.gz
Math-Tuttle-OSX:279lect10-1 smtuttle$ ls -lh rematch-play.sh
-rwx------ 1 smtuttle smtuttle 232B Oct 23 15:26 rematch-play.sh
Math-Tuttle-OSX:279lect10-1 smtuttle$ gzip -v rematch-play.sh
rematch-play.sh: 33.6% -- replaced with rematch-play.sh.gz
Math-Tuttle-OSX:279lect10-1 smtuttle$ ls
279lect10-1-projected.txt
279lect10-1-projected.txt~
279lect10-1.odt
279lect10-1.pdf
clicker-rematch.sh
rematch-play.sh.gz
rematch-play.sh~
tryIt
tryIt.tar
unix-stuff.txt
Math-Tuttle-OSX:279lect10-1 smtuttle$ gzip -rv tryIt
tryIt/file1: 0.0% -- replaced with tryIt/file1.gz
tryIt/file2: 0.0% -- replaced with tryIt/file2.gz
tryIt/file3: 0.0% -- replaced with tryIt/file3.gz
tryIt/file4: 0.0% -- replaced with tryIt/file4.gz
Math-Tuttle-OSX:279lect10-1 smtuttle$ ls
279lect10-1-projected.txt
279lect10-1-projected.txt~
279lect10-1.odt
279lect10-1.pdf
clicker-rematch.sh
rematch-play.sh.gz
rematch-play.sh~
tryIt
tryIt.tar
unix-stuff.txt
Math-Tuttle-OSX:279lect10-1 smtuttle$ ls tryIt
file1.gz file3.gz
file2.gz file4.gz
Math-Tuttle-OSX:279lect10-1 smtuttle$ mkdir tryIt/stuff
Math-Tuttle-OSX:279lect10-1 smtuttle$ mkdir tryIt/junk
Math-Tuttle-OSX:279lect10-1 smtuttle$ touch tryIt/stuff/moo
Math-Tuttle-OSX:279lect10-1 smtuttle$ touch tryIt/stuff/moof
Math-Tuttle-OSX:279lect10-1 smtuttle$ touch tryIt/junk/moof
Math-Tuttle-OSX:279lect10-1 smtuttle$ gzip -rv tryIt
gzip: tryIt/file1.gz already has .gz suffix -- unchanged
gzip: tryIt/file2.gz already has .gz suffix -- unchanged
gzip: tryIt/file3.gz already has .gz suffix -- unchanged
gzip: tryIt/file4.gz already has .gz suffix -- unchanged
tryIt/junk/moof: 0.0% -- replaced with tryIt/junk/moof.gz
tryIt/stuff/moo: 0.0% -- replaced with tryIt/stuff/moo.gz
tryIt/stuff/moof: 0.0% -- replaced with tryIt/stuff/moof.gz
Math-Tuttle-OSX:279lect10-1 smtuttle$ ls -r tryIt
stuff file4.gz file2.gz
junk file3.gz file1.gz
Math-Tuttle-OSX:279lect10-1 smtuttle$ ls tryIt/*
tryIt/file1.gz tryIt/file3.gz
tryIt/file2.gz tryIt/file4.gz
tryIt/junk:
moof.gz
tryIt/stuff:
moo.gz moof.gz
Math-Tuttle-OSX:279lect10-1 smtuttle$ tar cvf tryIt.tar tryIt
a tryIt
a tryIt/file1.gz
a tryIt/file2.gz
a tryIt/file3.gz
a tryIt/file4.gz
a tryIt/junk
a tryIt/stuff
a tryIt/stuff/moo.gz
a tryIt/stuff/moof.gz
a tryIt/junk/moof.gz
Math-Tuttle-OSX:279lect10-1 smtuttle$ ls tr*
tryIt.tar
tryIt:
file1.gz file3.gz junk
file2.gz file4.gz stuff
Math-Tuttle-OSX:279lect10-1 smtuttle$ mkdir newstuff
Math-Tuttle-OSX:279lect10-1 smtuttle$ cp tryIt.tar newstuff
Math-Tuttle-OSX:279lect10-1 smtuttle$ cd newstuff/
Math-Tuttle-OSX:newstuff smtuttle$ ls
tryIt.tar
Math-Tuttle-OSX:newstuff smtuttle$ tar xvf tryIt.tar
x tryIt/
x tryIt/file1.gz
x tryIt/file2.gz
x tryIt/file3.gz
x tryIt/file4.gz
x tryIt/junk/
x tryIt/stuff/
x tryIt/stuff/moo.gz
x tryIt/stuff/moof.gz
x tryIt/junk/moof.gz
Math-Tuttle-OSX:newstuff smtuttle$ ls
tryIt tryIt.tar
Math-Tuttle-OSX:newstuff smtuttle$ ls */*
tryIt/file1.gz tryIt/file3.gz
tryIt/file2.gz tryIt/file4.gz
tryIt/junk:
moof.gz
tryIt/stuff:
moo.gz moof.gz
Math-Tuttle-OSX:newstuff smtuttle$ ls
tryIt tryIt.tar
Math-Tuttle-OSX:newstuff smtuttle$ gzip -v tryIt.tar
tryIt.tar: 96.4% -- replaced with tryIt.tar.gz
Math-Tuttle-OSX:newstuff smtuttle$ ls
tryIt tryIt.tar.gz
Math-Tuttle-OSX:newstuff smtuttle$ tar -tf tryIt.tar.gz
tryIt/
tryIt/file1.gz
tryIt/file2.gz
tryIt/file3.gz
tryIt/file4.gz
tryIt/junk/
tryIt/stuff/
tryIt/stuff/moo.gz
tryIt/stuff/moof.gz
tryIt/junk/moof.gz
Math-Tuttle-OSX:newstuff smtuttle$