Index of /
Name Last modified Size Description
Parent Directory 02-May-2008 01:24 -
assign 19-Jul-2007 22:58 1k
avi2mpg.sh 11-Aug-2007 13:52 1k
for 23-Jun-2006 01:17 1k
for2 23-Jun-2006 01:20 1k
for3 23-Jun-2006 01:20 1k
if 07-Jan-2008 10:28 1k
mpg2dvd.sh 11-Aug-2007 13:53 1k
ps 23-Jun-2006 01:21 1k
redirect 23-Jun-2006 01:21 1k
resize-image.sh 28-Mar-2007 14:41 1k
watermark.sh 26-Nov-2006 00:16 1k
while 23-Jun-2006 01:21 1k
WHAT:
A collection of Bash "one-liners".
USAGE:
bash -v file
CONTRIBUTING:
create file with bash snippet (no shebang line is needed)
Example file contents:
for ((i=0; i<5; i++)); do echo current: $i; done
Save file (eg. 'for').
MORE INFO:
bash -h
help
help
man bash
Perl One-Liners: http://perl-e.chovy.com
Chovy's Blog: http://www.chovy.com
TESTING:
After testing with bash -v, please add the generated output and your environment info to the bottom of the file...
#You can automatically do this with:
#tail -n2 README.html | sed 's/file/for/g' ...where 'for' is the file
#then cut-n-paste into command line...
#email the output of the following two commands to anthony<--at-->chovy.com
bash file 2>&1 | awk '{print "#", $0 }' >> file && echo >> file;
bash --version | awk '{print "#", $0 }' >> file && echo >> file;