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:
':r!ls -l' results in listing the files in the current directory and paste it into vi
There are 3 alternatives - vote for the best!
in command mode, navigate your cursor to the line where you want the command output to appear, and hit "!!". No need to enter edit mode or even type a ":" (colon).
If you can do better, submit your command here.
You must be signed in to comment.