Search Results

Search: Posts Made By: kaav06
1,312
Posted By Don Cragun
I think this does what you want: awk ' ...
I think this does what you want:
awk '
function check( cn, i, j, ln) {
# local variables:
# cn sequence column number within line
# i loop control
...
2,238
Posted By agama
I think this will do what you are wanting: ...
I think this will do what you are wanting:


awk '
$1 == "ID" {
if( fname )
close( fname );
fname = $2 ".txt";
}
{ print >fname; }
' input-file


...
Forum: Programming 05-02-2012
2,146
Posted By Skrynesaver
The following prints the next line if the pattern...
The following prints the next line if the pattern is matched, however your spec is more than a little bit vague...

#!/usr/bin/perl

use strict;
use warnings;
while(<DATA>){
if...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy