mirror of
https://github.com/cheat/cheat.git
synced 2025-09-03 02:28:29 +02:00
Package with distutils
Created cheatsheets package to store the default sheets.
This commit is contained in:
14
cheatsheets/bash
Normal file
14
cheatsheets/bash
Normal file
@ -0,0 +1,14 @@
|
||||
To implement a for loop:
|
||||
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
|
Reference in New Issue
Block a user