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:
alternative for "echo rm *.txt". Just doubletab the command you are willing to use and it will show you the affected files.
There are 2 alternatives - vote for the best!
if you're using wildcards * or ? in your command, and if you're deleting, moving multiple files, it's always safe to see how those wildcards will expand. if you put "echo" in front of your command, the expanded form of your command will be printed. It's better safe than sorry.
If you can do better, submit your command here.
You must be signed in to comment.