![]() |
|
|
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 |
| function in UNIX | luna_soleil | Shell Programming and Scripting | 8 | 02-26-2009 01:22 PM |
| Recursive function call problem | netresearch | Shell Programming and Scripting | 2 | 01-28-2009 07:30 AM |
| Problem with Recursive function | malle | Shell Programming and Scripting | 4 | 02-03-2007 10:40 AM |
| recursive function | bebop1111116 | High Level Programming | 1 | 10-30-2006 08:12 PM |
| Performing a non-recursive find in Unix | christallott | UNIX for Advanced & Expert Users | 3 | 09-06-2002 10:13 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I meant iterative...My requirement is to find text between specific strings using awk send this to csv file then move ahead and find the next string send it to csv and so on till the end of the source file...Hope i am clear in explaining..
|
|
||||
|
No requirement is of same csv file for all iterations so for that 'echo grep shell' will work?
No i am still figuring out on how to build the code but the idea is to use only one csv output file. Let me simplify a bit. Source: source.txt say it contains a,1,b,a,2,b,a,3,b In code: awk '/a/,/b/' source.txt Target: target.csv which should get output as 1 ,one 2 ,two 3, three |
|
||||
|
Quote:
|
![]() |
| Bookmarks |
| Tags |
| awk, comma-delimited, csv |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|