Initial commit.

This commit is contained in:
yan
2011-11-17 15:45:33 -06:00
commit 882015bc6d
1819 changed files with 111625 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
echo -n "Do you wish to ${1:#question}" '[y/n] ' ; read ${2:ans}
case "$$2" in
y*|Y*) ${3:#statement} ;;
*) ${4:#statement};;
esac

View File

@@ -0,0 +1,6 @@
read ${1:yn}
if [[ $$1 =~ [Yy] ]]; then
echo "${2:#statement}"
else
echo "${3:#statement}"
fi