Search Results

Search: Posts Made By: adaleru
8,006
Posted By adaleru
Hi its working fine. thanks a lot, i just want to...
Hi its working fine. thanks a lot, i just want to save this out with testing.txt, how come we do that.
8,006
Posted By adaleru
$ cat filter.pl #!/usr/bin/perl use...
$ cat filter.pl
#!/usr/bin/perl

use strict;
use warnings;

open (F, "<create2.txt" ) || die "unable to open file: $!";
while ( my $file=<F> ) {
chomp($file);
open (FF,...
8,006
Posted By adaleru
getting the below error Bareword found where...
getting the below error

Bareword found where operator expected at filter.pl line 1, near "$ cat filter"
(Missing operator before filter?)
syntax error at filter.pl line 1, near "$ cat...
8,006
Posted By adaleru
cut the first row first column value
Hi All,

file create2.txt contains

. /test.txt
./create.txt
./test2.txt


test.txt contains

inb-1|kuuhsdkjfhsd|djshfjksd|ndsbs896
inb-2|kuuhsdkjfhsd|djshfjksd|ndsbs896...
6,483
Posted By adaleru
#!/usr/bin/perl for file in `cat create2.txt` ...
#!/usr/bin/perl
for file in `cat create2.txt`
do
cat ${file} |cut -d'|' -f1 >> firstcol.txt
done

create2.txt cotains these details

50 allignment.pl

13 |example.txt
8...
6,483
Posted By adaleru
sorry Aswin still getting the same error ...
sorry Aswin still getting the same error

Missing $ on loop variable at value.txt line 1.
6,483
Posted By adaleru
i'm getting the below error Missing $ on...
i'm getting the below error

Missing $ on loop variable at value.txt line 1.
6,483
Posted By adaleru
a.txt contains 832423|...
a.txt contains

832423| jkhsdkjf67hkkjh|mkmdshnklj|l;kds|klndls
234234| lksdhgldf|lkshdfkpjsd|lskdnlfks|lskjdfg|
873298| jdhfkjsdh |jkhdkoj|kljdslk|

b.txt and c.txt also contains the same...
6,483
Posted By adaleru
Cut the first column in listed files
1.give the command wc -l *e* > create2.txt

2.now create2.txt contains

a.txt
b.txt
c.txt
d.txt

3.create2.txt is a random file ( output may vary depends on time) (eg: a1.txt ,...
3,229
Posted By adaleru
Hi Anchal, in pervious i used this command...
Hi Anchal,

in pervious i used this command in perl

@dirlist1 = `wc -l *e* >create2.txt`;

if i replace the above command with ur command its not giving the out put.
pls suggest.

@dirlist1...
3,229
Posted By adaleru
Hi, Thanks for reply, however its not execute...
Hi, Thanks for reply, however its not execute with perl. can i have the perl syntax
3,229
Posted By adaleru
step 1: execute this command in perl -->...
step 1:

execute this command in perl --> @dirlist1 = `wc -l *e* >create2.txt`;

Step 2: getting the out put

1 a.txt
2 b.txt
67 c.txt
78 d.txt
148 total

step3 : From the above...
3,229
Posted By adaleru
Its not working . can u kindly give me the syntax?
Its not working . can u kindly give me the syntax?
3,229
Posted By adaleru
using wc -l *e* >create2.txt i'm getting the...
using wc -l *e* >create2.txt i'm getting the below output
3 a.txt
4 b.txt
5 b.txt
6 b.txt
18 total

from the above output i want to delete the last row 18 total using perl script. for this...
3,229
Posted By adaleru
Execute in unix not in PERL
Hi All,

This below command is working fine with unix box. However i could not able

to run it in PERL. kidly suggest???

perl -ne '{push @x, $_}END{pop(@x); print @x}' create2.txt
2,086
Posted By adaleru
delete last row in PERL
How to delete last row in the file in PERL.

file1 has

a.output
b.output
c.output
d.output
e.output

expected output is

a.output
b.output
c.output
d.output
6,363
Posted By adaleru
---------- Post updated at 04:30 PM ----------...
---------- Post updated at 04:30 PM ---------- Previous update was at 03:54 PM ----------

let me explain my issue again

1.give the command wc -l *e* > create2.txt

2.now create2.txt contains...
6,363
Posted By adaleru
Hi , Thanks for your reply, however its...
Hi ,

Thanks for your reply, however its giving error
6,363
Posted By adaleru
Not working guys. can any one suggest me the PERL...
Not working guys. can any one suggest me the PERL script
6,363
Posted By adaleru
Cut the first column in listed files > PERL script
Hi All,

Using this command wc -l *e* > create2.txt i'm getting the following output >>>create2.txt listed output files, my requirement is how to cut the first coloum in all the files mentioned in...
1,907
Posted By adaleru
What is the PERL code for the same output....
What is the PERL code for the same output. Actually i'm searching of it
6,360
Posted By adaleru
its not working in PERL
its not working in PERL
6,360
Posted By adaleru
wc -l command issue with perl
Hi Team,

the Following program execute with out error but the out is not save with create2.txt. kindly help me!!!


print "Enter your Number \n";

my $name = <STDIN>;

if ($name...
1,296
Posted By adaleru
hard code means which which we can run directly. ...
hard code means which which we can run directly.

i found the answer for my query :

find . -mtime 0 -name "*.bat" -print

thanks for ur immidiate answers.
1,296
Posted By adaleru
can u pls give me the hard code
can u pls give me the hard code
Showing results 1 to 25 of 34

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