commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
You can use this in shell scripts to show which commands are actually run. Just prepend every "critical line" with "v˽".
echo "Let me create a directory for you"
v mkdir $TMP/new
In scripts this can be more useful than "set -x", because that can be very verbose with variable assignments etc.
Another nice use is if you prepend every "critical" command with "v", then you can test your script by commenting out the actual execution.
There are 5 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.