Bash tips and trick
Monday, March 13, 2006
Comparing two string
if [ $foo = "foo ]; then
...
fi
posted by Arthur Kho Caayon at
12:49 PM
0 Comments:
Post a Comment
<< Home
Previous Posts
${filename%.*} Extracting the filename by strippin...
${filename##*.} Extracting the file extension of f...
${#string} Getting the length of a string
${var=default} If var is not set, set it to default
${var-default} If var is not set, use a default
If arg is empty print the current working director...
How to get the parent directory of a folder
Special characters and operators
Print only line 58 of a text file: $ sed -n '58...
Batch renaming of files$ rename 's/\s+/_/g' *.mp3R...
0 Comments:
Post a Comment
<< Home