![]() |
|
|
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 |
| inserting line?? | anj | UNIX for Dummies Questions & Answers | 7 | 11-03-2007 12:18 PM |
| Inserting 1st arg into middle | boris | Shell Programming and Scripting | 2 | 04-13-2007 03:41 PM |
| Inserting character in every line | dakid | Shell Programming and Scripting | 1 | 08-25-2006 08:54 AM |
| Inserting a carriage rtn in a sed cmd | sirtrancealot | Shell Programming and Scripting | 6 | 07-14-2006 06:08 AM |
| inserting characters before each line... | Nicol | Shell Programming and Scripting | 4 | 09-02-2004 05:40 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Inserting a space
I am trying to reformat some UK postal codes. I have a csv where field 12 is the postal code. The postal codes length has a maximum of 7.
Basically, I would like a bit of code to look at field 12 and if the postal code has a length of 7, then insert a space into the field fourth from the right, i.e. before - BB102EE, after - BB10 2EE Help me |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|