Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Change last line of file using sed
Name: shamim.tcs Date: November 1, 2006 at 23:33:03 Pacific OS: AIX 5.3 CPU/Ram: Intel , 552 MB Product: IBM
Comment:
Hi,
I wish to add "\" symbol at the end of each line of a file, except the last one. e.g.
Summary: Thanks, Nails! Works great to append the line feed onto the source file. If I could ask a follow-up question: I'd like to eliminate as many intermediate files as possible. The input data file is a...
Summary: Hi, Can someone tell me how to append some text to the last line. Basically i have a last line of a file as follows user1:password i would like to append ':systemuser' to the last line of this file a...
Summary: Hello, Recently began writing some UNIX scripts with a lot of success. One problem I have encountered that really stumps me. In an alias file, after I have removed all the users identified in ano...