Search Results

Search: Posts Made By: adaleru
8,006
Posted By clx
One way: $ cat filter.pl #!/usr/bin/perl ...
One way:

$ 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);
...
2,086
Posted By pseudocoder
perl -ne '{push @x, $_}END{pop(@x); print @x}'...
perl -ne '{push @x, $_}END{pop(@x); print @x}' file1
1,296
Posted By bartus11
find . -daystart -ctime 0 -name "*.bat"
find . -daystart -ctime 0 -name "*.bat"
1,815
Posted By pludi
First things first: Perl is not shell scripting! ...
First things first: Perl is not shell scripting!
Second: you're using cat far too often. cut can read a file fine by itself, and wc, when given a file argument, won't even bother reading stdin....
2,908
Posted By pparthiv
Thanks a lot. This worked.
Thanks a lot. This worked.
2,908
Posted By jecaestevez
Problem resolved
First create a new fich without the head

$ cut -d"|" -f2-25 asdf>fichNew

Sencond create a fich with the firt part what it will the last
$ cut -d"|" -f1 asdf>head

And paste the first part...
Showing results 1 to 6 of 6

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