Feed on Posts or Comments 10 March 2010

Uncategorized Wytze on 18 Aug 2009 08:38 am

Some bash stuff

I just need a cheat sheet because I keep forgetting all these bash things.

Number of parameters: $#
All parameters: $@
String length: ${#foo}
Remove trailing slash: ${foo%/}
Check return value from last command: $?

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply