Search Results

Search: Posts Made By: hankooknara
1,576
Posted By hankooknara
sharing same inode but not linked
how does below 2 file have same inode but not be linked?

I did file command as well on file1 and file2 and it says ascii text

Is this possible?



1207 -rw-rw-rw- 77 424 root ...
4,055
Posted By hankooknara
perl array question from going through hash
suppose my @{$data1{$callid}}; cotains

one two three
three five six
one two three

of random patterns but each item is separated by white space or tab,

Below code extract and get...
2,610
Posted By hankooknara
thank u. .i understand now
thank u. .i understand now
2,610
Posted By hankooknara
perl hash question
Below is one article I was reading and I don't understand the



$seen{$_} = 1


Can someone explain this in easier terms plesae?
...
8,676
Posted By hankooknara
still samething after changing to hash ...
still samething after changing to hash


1 #!/usr/bin/perl -w
2
3 use strict;
4
5 my $ncb = $/;
6 my $cbn = $";
7 $/ = "\n\n";
8 #$" = "\n";
...
8,676
Posted By hankooknara
bit closer.. but now it says that %keyinfomaster...
bit closer.. but now it says that %keyinfomaster is not initialized.... grrr


#!/usr/bin/perl -w

use strict;

my $ncb = $/;
my $cbn = $";
$/ = "\n\n";
#$" = "\n";

open(FH,...
8,676
Posted By hankooknara
This doesn't work either while (<FH>) { ...
This doesn't work either


while (<FH>) {
if (m/yahoosomething/) {
$keyinfo = $_;
print "$keyinfo\n";
}
if (m/^(sometpattern) (\d\d\d)\$2/) {
$somevalue =...
8,676
Posted By hankooknara
another perl question
I have a question regarding bulding a hash from a file which has below pattern

I thought I could write something like this but clearly my syntax is way off


$/ = "\n\n";
$" = "\n";
...
1,650
Posted By hankooknara
In fact, I am gonna extend this question even...
In fact, I am gonna extend this question even longer,

Below is where this question came from... it is hangman perl program.


#!/usr/bin/perl -w

@words=qw( internet answers printer...
1,650
Posted By hankooknara
perl question my @guesses=() difference between @guesses;
what is the point of ?

my @guesses=();


why can't I do

my @guessses;

Is there any difference?
1,293
Posted By hankooknara
perl question @blankword=(0)
can someone please explain below for me in perl?

I understand on right hand side is getting the number of elements in @letters but what is

@blankword=(0) x ????


@blankword=(0) x...
1,967
Posted By hankooknara
Hi, using use logger works fine, I was just...
Hi, using use logger works fine,

I was just trying to see from my someone's code from work to see why require was being used.

someone told me because it was from older code Perl 4?
3,005
Posted By hankooknara
I am sure you are looking for more elegant...
I am sure you are looking for more elegant solution but trying to see if I can do anything,

I guess obviously you can run this at top of the hour once and just increase the value for sleep time
...
1,967
Posted By hankooknara
Perl module question
Trying to get a better grip on perl module, I was testing out below script,

When I use "use Acme statement", it loads the module properly and it works.

However, when I want to test out the '...
1,922
Posted By hankooknara
thank you...
thank you...
1,922
Posted By hankooknara
another perl question
I fail to see how below answer is 1? can someone explain this for me?


DB<3> $string = "The cat sat on the mat";

DB<4> $animal = ($string =~ m/The (.*) sat/);

DB<5> print $animal;
1
1,912
Posted By hankooknara
thanks!.. I guess that is better..
thanks!.. I guess that is better..
1,912
Posted By hankooknara
fixed it #!/usr/bin/perl -w use...
fixed it


#!/usr/bin/perl -w

use strict;
my @array2;

my @array1 = ("David Veterinarian 56", "Jackie Ass 34", "Karen Veterinarian 28");
print '@array1 is ' , "@array1\n";

my $i = 0;
...
1,912
Posted By hankooknara
perl program question
why does below program not work?

<> is producing nothing.. still waiting for input.. but i thought this would work?



#!/usr/bin/perl -w

use strict;
my @array2;

my @array1 = ("David...
13,913
Posted By hankooknara
Aigles, Can you please elaborate on ...
Aigles,

Can you please elaborate on

read -r option? Just read the definition and cannot understand why -r was used. thank you for your great work as always~



-r ...
5,339
Posted By hankooknara
not clean.. but just did it below.. if...
not clean.. but just did it below..

if someone can tell me better ways to do it.. please let m know.. also. in chracter class.. why can't ^ group of consecutives words?


#!/bin/sh
ls |
...
5,339
Posted By hankooknara
rock on guys.. thanks.. I used cautionary measure...
rock on guys.. thanks.. I used cautionary measure and it's all working.. now working on next fix..

E41.You.Landscape.kor.hdtv.original.avi

trying to put below files into different names so that...
5,339
Posted By hankooknara
I think below works.. I guess + is not supported...
I think below works.. I guess + is not supported under sed..

I am bit nervous to run below command on folder that I have so many avi files.. I don't want to wreck anything up.. does anyone see...
5,339
Posted By hankooknara
Below code seem to work.. 070625...
Below code seem to work..

070625 kbs1.E41.You.Landscape.kor.hdtv.original.avi

was the original file name I did test on..



#!/bin/sh
ls |
egrep "^[0-9][0-9][0-9][0-9][0-9]" |
...
5,339
Posted By hankooknara
I guess below is what I try to do.. and does it...
I guess below is what I try to do.. and does it make sense?

trying to rename a file.. so i guess mv $a $yahoo is ok?

and yes some file has 6 digits following by space or .




#!/bin/sh...
Showing results 1 to 25 of 80

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