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:
This can be easier to look at in ls output. Not as clean as +%Y%m%dT%H%M%S, but quicker to write.
There is 1 alternative - vote for the best!
I often need to add a timestamp to a file, but I never seem to remember the exact format string that has to be passed to the date command to get a compact datetime string like 20090220T231410 (i.e yyyymmddThhmmss, the ISO 8601 format popular outside the US)
If you can do better, submit your command here.
You must be signed in to comment.