![]() |
|
|
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 |
| appending two string is not working | krishna9 | Shell Programming and Scripting | 11 | 05-19-2008 05:31 AM |
| Appending a string to all files in a directory | ragavhere | Shell Programming and Scripting | 1 | 04-28-2008 07:31 AM |
| Sed appending string using for loop? | cstovall | Shell Programming and Scripting | 2 | 01-28-2007 09:30 PM |
| appending string to text file based on search string | malaymaru | Shell Programming and Scripting | 1 | 06-09-2006 09:53 AM |
| Appending string to xml file using "sed" | nir_s | Shell Programming and Scripting | 2 | 05-09-2006 04:54 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Appending 'string' to file as first column.
Hi , I have the below file with 6 columns.I want to append 'File1' as the 1 column to the file. i have the sample code .It is not working . can u please correct this or make new one ..... Code:
awk 'print {'File1',$1,$2,$3,$4,$5,$6}' Source_File> Result_File
Source_File: Code:
E100,0,5/29/1993,0,E001,E000 E102,0,1/23/1994,0,E001,E003 E104,0,6/4/1994,0,E001,E003 E105,0,7/30/1993,0,E001,E003 Result_File : Code:
File1,E100,0,5/29/1993,0,E001,E000 File1,E102,0,1/23/1994,0,E001,E003 File1,E104,0,6/4/1994,0,E001,E003 File1,E105,0,7/30/1993,0,E001,E003 Please help me ..... Last edited by satyam_sat; 04-02-2008 at 04:43 AM.. Reason: added code tags |
| Bookmarks |
| Tags |
| awk, sed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|