![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| how to add files to an existing tar file - HP-UNIX | Nomaad | UNIX for Dummies Questions & Answers | 5 | 11-06-2008 05:27 AM |
| Replacing the last data of each line ina file | jisha | Shell Programming and Scripting | 6 | 08-04-2008 07:47 AM |
| add data from command line to end of file | bryan | UNIX for Dummies Questions & Answers | 3 | 05-23-2006 06:57 PM |
| Print one line of Existing File | danhodges99 | UNIX for Dummies Questions & Answers | 2 | 02-25-2003 11:56 AM |
| help on appending data to existing data | precious51980 | UNIX for Dummies Questions & Answers | 1 | 01-27-2001 12:56 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Need to add a line of data to already existing file in Unix..
Hello..
I have a text file with 100 lines of data. I need to add 1 line of data to that already existing file at the first line( beginning of the file) , so that the already existing 100 lines will start from 2 nd line.Now the file will have 101 lines of data. Help me on how to add the line of data ?? --Charan.. |
|
||||
|
Hi,
I am a newbee as well, I think u can do it in followig ways, 1) open the file in VI and add the first line at the top 2) put the new line into another file say file2 and then do cat file2 exsistingfile > newfile newfile is your output grp please correct me if i m wrong bye Gaurav |
|
||||
|
Madhan,
When i use echo "1i\nGROUP_NAME,JOB_NAME,STATUS,PROCESS_GROUP,JOB_START,JOB_END \n.\nwq" | ex -s abc.txt where abc.txt contains only Hello Testing Insert I am getting this.. dumb: Unknown terminal type ksh: 19464 Segmentation Fault Is that a major error..If so, How to overcome ?? |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|