Search Results

Search: Posts Made By: casman46
6,777
Posted By casman46
Using the sample data I obtained the requested...
Using the sample data I obtained the requested output using this script

#!/usr/bin/ksh

gawk -v name=$1 '
BEGIN{
RS = "</record>"; FS = "\n"; ORS = "</record>"
}

{
pos =...
5,618
Posted By casman46
As I understand your problem, using Perl (and...
As I understand your problem, using Perl (and your sample data) I believe this will give you what you want.

#!/usr/bin/perl
my @fields;
my @hold;
my $key1;
my $x;
my $i;
open INPUT,...
4,731
Posted By casman46
As I understand your question, using Perl (and...
As I understand your question, using Perl (and your sample data file) this code should do what you need:

#!/usr/bin/perl
my @array1;
my $key1;
open INPUT, "<datfile";
open OUTPUT, ">outfile";...
Showing results 1 to 3 of 3

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