![]() |
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 |
| Printing value with no obvious field seperator | Donkey25 | Shell Programming and Scripting | 4 | 03-14-2008 06:57 AM |
| How to change field seperator | onthetopo | Shell Programming and Scripting | 2 | 05-11-2007 01:11 PM |
| regexp to print after a field seperator | ramky79 | Shell Programming and Scripting | 7 | 05-09-2007 07:31 PM |
| find columns with whitespace as field seperator? | tkbharani | UNIX for Advanced & Expert Users | 8 | 03-14-2007 01:13 AM |
| Awk Field Seperator Help | insania | Shell Programming and Scripting | 3 | 11-11-2005 04:29 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Add a field seperator in a file.
"355"|""|"NJ"|"A0A 1W0"|"V"|""|""|""|"N"
I've the above sample data seperated with pipe delimeter and in the file I want to replace a space with "|" to the 4th field so the result would be like below. So it would change from 9 fields to 10 fields. "355"|""|"NJ"|"A0A"|"1W0"|"V"|""|""|""|"N" can anyone suggest to do it using awk or whichever way easier to deal with. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|