![]() |
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 |
| How to view the contents of .gz file without extracting the file? | amitkhiare | Shell Programming and Scripting | 10 | 12-18-2008 05:59 AM |
| Splitting a file based on record sin another file | er_ashu | UNIX for Dummies Questions & Answers | 7 | 05-15-2008 11:06 PM |
| Splitting a file based on the records in another file | er_ashu | Shell Programming and Scripting | 2 | 05-12-2008 04:34 PM |
| Help needed in removing intermediate segments from a pipe delimited segment file | naren_0101bits | Shell Programming and Scripting | 3 | 12-03-2007 11:54 AM |
| Extracting data from text file based on configuration set in config file | suparnbector | Shell Programming and Scripting | 3 | 08-10-2007 02:25 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi there,
I need to split one huge file into separate files if the condition is fulfilled according to that the position between 97 and 98 matches with IT at the segment MAS. There is no delimiter file is fix-width with varous line length. Could you please help me how I do split the file into separate files like <filename>.[0-9][0-9][0-9].IT BTW I meant as multiple segment messages in one file is something like that Code:
MAS NZ -len 200- (1st msg) DOS -len 175- TMP -len 66- CON -len 388- MAS IT (2nd msg) DOS TMP PTY MAS IN (3rd msg) DOS TMP GDS MAS IT (nth msg) DOS TMP And file <filename>.001.IT looks like Code:
MAS IT DOS TMP PTY Thanks in advance, Ciao |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|