Merge pull request #4 from CogBear/master

Cut command added and bash extended
This commit is contained in:
Chris Lane 2013-08-12 15:53:16 -07:00
commit 098384d341
2 changed files with 11 additions and 0 deletions

View File

@ -3,3 +3,12 @@ for file in `ls .`;
do echo 'file';
echo 'found';
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