![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need to serach if a new line character exists on the last line in a file | sunilbm78 | UNIX for Dummies Questions & Answers | 10 | 02-29-2008 02:15 PM |
| Cat'ing a multiple line file to one line | djsal | Shell Programming and Scripting | 1 | 04-16-2007 09:50 PM |
| Appending the line number and a seperator to each line of a file ? | pjcwhite | Shell Programming and Scripting | 4 | 03-21-2007 01:29 AM |
| Remove header(first line) and trailer(last line) in ANY given file | madhunk | Shell Programming and Scripting | 2 | 03-13-2006 03:36 PM |
| How to read from a file line by line and do stuff | spaceship | Shell Programming and Scripting | 4 | 03-17-2005 09:47 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to add a new line into a file
I want to insert a new line character inside the file between these two record entries "san" and "man". How can this be done
echo " san " >"C:/\Test/\Output/\Neme" echo " man " >>"C:/\Test/\Output/\Name" Name file should look like this san man Please help |
|
||||
|
echo " san \n"
gives the following output san \n but when we use echo -e " san \n" it gives the desired output on the screen but while inserting into the file it doesn't work. Please help me how to make it work Regards Sandeep Last edited by sandeep_hi; 06-22-2006 at 03:33 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|