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:
There are 8 alternatives - vote for the best!
Delete a range of line
Deletes lines to of a file. You must put the end line first in the range for the curly brace expansion, otherwise it will not work properly.
Deletes lines from START to END, inclusive. For example +4,10d will delete line 4, 5, ..., 10. Just like the vi command :4,10d does it.
If you can do better, submit your command here.
You must be signed in to comment.