![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to convert Fixed length file to delimited file. | satyam_sat | Shell Programming and Scripting | 7 | 04-02-2008 11:41 PM |
| What the command to find out the record length of a fixed length file? | tranq01 | UNIX for Dummies Questions & Answers | 3 | 10-19-2007 11:16 AM |
| use SQL loader to dump a fixed length file in to DB | anumkoshy | Shell Programming and Scripting | 2 | 10-10-2007 02:53 AM |
| convert XML file into Text file(fixed length) | ram2s2001 | Shell Programming and Scripting | 0 | 11-02-2005 09:28 PM |
| creating a fixed length output from a variable length input | r1500 | Shell Programming and Scripting | 2 | 12-03-2003 09:09 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Greetings,
I need to take a fixed length file, similar to the following: <input file> 1233 e 612 i 43378 f 03 x 22 17 e 9899 a 323e a6 z7 read in the character in position 6, and if that character = e, delete that line from the file. <output file> 43378 f 03 x 22 17 e 9899 and if possible, output the deleted lines to a new "log" file. <log file> 1233 e 612 i a 323e a6 z7 The old file must maintain its structure, the log file wouldn't. I'm on an AIX platform, and have sh/ksh/bash available to script in. I'm sure it can be done with some combination of cut/sed/awk, I just haven't been able to get it right as of yet. Any help would be greatly appreciated! Thanks in advance. DB |
| Forum Sponsor | ||
|
|