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:
After every line in targetfile (empty lines included) insert in a line from addfile. "Save" results to savefile. Addfile should be longer than targetfile since this doesn't loop back to the top of addfile.
/^/R addfile -- says for every line that matches "has a start of line" output a line from the file addfile.
> savefile (optional) -- redirect output to savefile file.
There is 1 alternative - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.