Pages
Categories
Archives
Tags
Algorithm Bash Bell BlackBerry Blogging C# C/C++ China08Earthquake Christmas Concurrency Debian Demonoid DistroWatch DIY Environment Firefox Fun Furniture Gear Gmail Gnome Google Hot-pot Party iPhone Java Joost LFS Linux MagicDraw Math MC2037 Metal-J New Year Picture Python Street Fighter Ubuntu User_Experience Vehicle Video VIM Web Wordpress YouTube ZooomrBookmarks
Elsewhere
Meta
Monthly Archives: November 2009
“–” (Double-hyphen) in Bash
$cat out if [ $# -eq 0 ] then echo "Usage: out [-v] filenames…" 1>&2 exit 1 fi if [ "$1" = "-v" ] then shift less — "$@" else cat — "$@" fi In out the — arguments to … Continue reading
Handle Filenames with Spaces Properly in Bash Loops
find ~ -name ‘* *’ | while read FILE do echo "$FILE rocks." done via Handling Filenames with Spaces in Bash