Search Results

Search: Posts Made By: askari
1,281
Posted By askari
Separate a hash variable into 2 parts in Perl
Dear Perl users/experts,

Could somebody help me how to solve my problem, I have a hash variable that I want to convert into dot file (graphviz).
I know how to convert it to dot file but I need...
1,684
Posted By askari
Another way in Perl language. Just for...
Another way in Perl language. Just for alternative solution,

#!/usr/bin/perl -w
# Usage: perl regex.pl file.log
use strict;

my $file = shift;
my $fh = undef;

open ($fh, '<', $file) or die...
1,448
Posted By askari
Hi disedorgue...
Hi disedorgue (https://www.unix.com/members/302152559.html),

Thanks for the script, it works for one-liners but why the script is not work when I try to modify the script as below.
...
1,448
Posted By askari
Remove not only the duplicate string but also the keyword of the string in Perl
Hi Perl users,

I have another problem with text processing in Perl. I have a file below:

Linux Unix Linux Windows SUN
MACOS SUN SUN HP-AUX
I want the result below:

Unix Windows ...
2,159
Posted By askari
Hi Belajesuri, Thanks alot for your Perl code...
Hi Belajesuri,
Thanks alot for your Perl code and to the others also I would like to say thanks so much but I need a Perl script.

I try to reformat your code from one-liners to the common way of...
2,159
Posted By askari
How to convert the row to column in Perl?
Dear Perl users,

Could you help me how to convert from row to column if I've a case below:

Linux 2014_01_24 CPU 10
Linux 2014_01_24 MEM ...
1,358
Posted By askari
Hi durden_tyler, Thanks for your code. I...
Hi durden_tyler,

Thanks for your code. I found the bug was the place of array variable initialization. After I put the "@result" array variable to the next line " if (open (EXT,...
1,358
Posted By askari
if my original data is changed and added the...
if my original data is changed and added the additional parameter below. I have used your code above before but when I want to split it (e.g. halo1 data into two column by using regexp) is it...
1,358
Posted By askari
Hi durden_tyler, Thanks a lot but...
Hi durden_tyler,

Thanks a lot but unfortunately my file is huge. and also if your code above, I can not split into column directly (per each line), am I right?.

do you have other solution for...
1,358
Posted By askari
Perl script: matching multiple lines error
Dear Perl users,

Could somebody help me how to fix my code so I can get my desired output.
Here is the data:
Pattern Gabriel
halo1
halo2
end
Pattern Andreas
halo1
halo2
endI want to grep...
1,299
Posted By askari
How to fix my code in Perl?
Hi Perl users,

Could you help me how to fix my code so I can get the expected output as seen below?
is there missing in my program?

Thank You

#!/usr/bin/perl -w

use strict;

open (FH,...
1,092
Posted By askari
Reference of hash (Perl)
Hi Perl users,

Could somebody help me to find the solution of my problem below.
Here is my data:
__DATA__
===================================================
NameOfipaddress ...
965
Posted By askari
Perl - how to find the number based on the same name
Hi Perl Experts,

Could somebody help me how to solve my problem if I have array contains the following data:

"SEQ-0 UNSORT2 0",
"SEQ-1 UNSORT2 1",
"SEQ-2 ...
2,892
Posted By askari
Try this Perl code: #!/usr/bin/perl use...
Try this Perl code:
#!/usr/bin/perl

use strict;

#----------------
# Hash Definition
#----------------
my %HoA;
my @name;

#--------------------
# Subroutine
#--------------------
sub...
2,704
Posted By askari
Try this code. #!/usr/bin/perl use...
Try this code.

#!/usr/bin/perl

use strict;
use warnings;

#---------------------
# Variable definition
#---------------------
my @temp_fl;
my @sort_fl;
my @frst_str;
my @lst_str;
...
Forum: Programming 12-10-2011
1,744
Posted By askari
Hi Otheus, Thanks alot for your answer.
Hi Otheus,

Thanks alot for your answer.
Forum: Programming 12-08-2011
1,744
Posted By askari
find the missing sequence in hash perl
Dear Perl's Users,

Could anyone help me how to solve my problem. I have data with details below.

TTY NAME SEQUENCES
U-0 UNIX 0
U-1 UNIX 1
U-2 UNIX 2...
Forum: Programming 07-30-2011
1,822
Posted By askari
Hi Yazu, Thank you so much.
Hi Yazu,

Thank you so much.
Forum: Programming 07-30-2011
1,822
Posted By askari
Perl - how to put to the next line if I have same pattern in one line
Dear All,

Could you help me how to put to the next line if I have pattern below in Perl language.

Data-123 Linux MacOSData-124 windows FreeBSDData-125 OpenBSD NetBSD

I would the output...
Forum: Programming 01-23-2011
1,188
Posted By askari
Hi Tyler_durden, Thanks alot for your solution
Hi Tyler_durden,
Thanks alot for your solution
Forum: Programming 01-22-2011
1,188
Posted By askari
Parser - multiple in Perl
Dear Perl Experts,

Could some body help me to find the solution for my problem below:

Input file:
-----------

THE-0 tsjp
THE-32 tsjp
THE-64 tsjp

Output desired:...
Showing results 1 to 21 of 21

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