![]() |
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 |
| problem while searching in a file by 'AWK' | inderpunj | Shell Programming and Scripting | 1 | 05-02-2008 12:16 AM |
| help needed | nnayagam | Shell Programming and Scripting | 2 | 03-07-2008 06:34 AM |
| 'awk' syntax error | lokiman | UNIX for Dummies Questions & Answers | 3 | 02-12-2008 05:27 AM |
| awk help needed. | cskumar | Shell Programming and Scripting | 0 | 07-20-2006 08:24 AM |
| Sed help needed | stevefox | Shell Programming and Scripting | 5 | 12-05-2005 01:44 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Help needed in 'awk' : pls.
we have a file File1.I have used the below code to append 'file1' to each row.it is appending 'file1' but there is 5 empty space is coming after the end of each row.i found this opening in 'vi' mode and moving the cursor on each row ...can u help me ...
File1: E100|0|05/29/1993|0|E001|E000 E102|0|01/23/1994|0|E001|E003 E104|0|06/04/1994|0|E001|E003 E105|0|07/30/1993|0|F001|E003 E106|0|01/09/1993|0|E001|E003 awk '{print "file1|"$1,$2,$3,$4,$5,$6}' File1 > result result: file1|E100|0|05/29/1993|0|E001|E000____ file1|E102|0|01/23/1994|0|E001|E003 file1|E104|0|06/04/1994|0|E001|E003 file1|E105|0|07/30/1993|0|F001|E003 file1|E106|0|01/09/1993|0|E001|E003 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|