Search Results

Search: Posts Made By: ejdv
1,319
Posted By rdrtx1
try: #!/usr/bin/perl -w #-d use strict; ...
try:
#!/usr/bin/perl -w #-d
use strict;

my $Line = "value1:{value2a:value2b}:value3:{}:value5:{value6a:value6b:value6c:value6d}";

my @atts = ($Line =~ /{[^:}]*:[^}]*}/g);
for (@atts) {my...
1,319
Posted By rdrtx1
try: #!/usr/bin/perl -w #-d use strict; ...
try:
#!/usr/bin/perl -w #-d
use strict;

my $Line = "value1:{value2a:value2b}:value3:{}:value5:{value6a:value6b}";
$Line=~s/({[^:}]+):([^}]+})/$1!=!$2/g;

my @LineAttributes = split (/:/,...
3,466
Posted By Scrutinizer
Try: nawk -F: '{last=$1} END{print last}' infile
Try:
nawk -F: '{last=$1} END{print last}' infile
8,903
Posted By durden_tyler
You'll need to know the concept of "references"...
You'll need to know the concept of "references" for this.

As for the custom ordering of keys, you could reorder the array @all_comp_products, but that was not its intention in the first place....
8,903
Posted By durden_tyler
Since the data in your sample file is repetitive,...
Since the data in your sample file is repetitive, I've used a different sample data file for this problem.

Let's say the data file looks like this:


$
$
$ cat lines.txt...
1,632
Posted By hergp
Try to unset $DATEMSK and try again. There seems...
Try to unset $DATEMSK and try again. There seems to be a problem with this environment variable.
2,379
Posted By Klashxx
Do it this way: #!/usr/bin/perl -w #-d use...
Do it this way:
#!/usr/bin/perl -w #-d

use strict;

my $pu;
my $pu_list_cmd;

my @pu_list = (
"PU_0001",
"PU_0002",
"PU_0003",
"PU_0004",
"PU_0005");

printf "pu_list at the...
Showing results 1 to 7 of 7

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