added the cut command and extended bash

This commit is contained in:
Darren Lin 2013-08-11 19:09:29 -07:00
parent 15fd673a51
commit 3cc610b2ac
2 changed files with 11 additions and 0 deletions

View File

@ -3,3 +3,12 @@ for file in `ls .`;
do echo 'file'; do echo 'file';
echo 'found'; echo 'found';
done done
To implement a case command:
case "$1"
in
0) echo "zero found";;
1) echo "one found";;
2) echo "two found";;
3) echo "three found";;
esac

2
.cheat/cut Normal file
View File

@ -0,0 +1,2 @@
To cut out the third field of text or stdoutput that is delimited by a #:
cut -d# -f3