![]() |
|
|
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 |
| Help fix my garbage - File Split Program in Perl | mkastin | Shell Programming and Scripting | 4 | 06-27-2009 12:44 AM |
| perl help to split big verilog file into smaller ones for each module | return_user | Shell Programming and Scripting | 7 | 05-12-2009 10:44 PM |
| split a file but output file is fixed | RahulJoshi | Shell Programming and Scripting | 3 | 01-07-2009 11:05 PM |
| Split a file based on pattern in awk, grep, sed or perl | kumarn | Shell Programming and Scripting | 5 | 06-20-2008 11:51 AM |
| Perl Script : Split given month into weeks | khushbu_roy | Shell Programming and Scripting | 5 | 02-22-2008 11:40 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
how to get split output of a file, using perl script
Hi,
I have file: data.log.1 ### s1 main.build.3495 main.build.199 main.build.3408 ###s2 main.build.3495 main.build.3408 main.build.199 I want to read this file and store in two arrays in Perl. I have following command, which is working fine on command prompt. perl -n -e '/^###/ and open FH, ">output_".$n++; print FH;' data.log.1 But I want to use this command in Perl file, so that I can store output ###s1 (part) and ###s2 (part) in two different arrays. Any help will be appreciated. Thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|