![]() |
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 |
| Create individual tgz files from a set of files | amitg | UNIX for Dummies Questions & Answers | 4 | 04-29-2008 10:13 AM |
| Inserting variables from 2 files to create 1 file | rochitsharma | UNIX for Advanced & Expert Users | 1 | 03-17-2008 10:33 AM |
| Create files with one command | jess_t03 | Shell Programming and Scripting | 6 | 10-09-2007 03:30 PM |
| on how to create files | fiol73 | UNIX for Dummies Questions & Answers | 2 | 12-19-2006 07:41 AM |
| Create and pw protect .tar files | clovell | UNIX for Dummies Questions & Answers | 5 | 06-22-2005 11:24 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hello to everyone,
I am new to UNIX and I am having a problem. I have a file full of information, and need to create diferent files. I have to split the file whenever I find a sentence in the original one. This sentence is always the same (JOB ^....). As you can see I need to read a file, and whenever I find a sentence create a new file, ending whenever I find that sentence again. I have read about sed and awk, but don't know how to use it, or if it is the best option. I need to split the file because the next step in the process is not capable of doing it. An example of the original file would be: Job^1 a b c Job^2 d e f And need to end with a two files. The first file: Job^1 a b c A second file: Job^2 d e f Any help anyone could give me would be very appreciated. Thanks a lot. Jordi Last edited by jordimirobruix; 11-02-2004 at 08:34 AM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|