Search Results

Search: Posts Made By: vikas.nv
6,825
Posted By vikas.nv
Just a more readable script for you ...
use strict;
use Data::Dumper;

open (FILE, 'input.txt') or die "input.txt : $!\n";
my @wanted = ();
my $in_section = 0; # this is a flag that indicates start of 'data-store'
...
4,910
Posted By vikas.nv
Grepping using Perl
Hi senthilkumar_ak,

You can use Perl. It will give you better results than grep i think.
Here are few tips for searching ...
1. do not store the file contents in an array, if the file size is...
1,403
Posted By vikas.nv
ask questions after getting some initial...
ask questions after getting some initial knowledge on what you are dealing ...
ghostdog74 suggests right .... perldoc perlre (http://perldoc.perl.org/perlre.html)
20,879
Posted By vikas.nv
I have replied to this question (with perl...
I have replied to this question (with perl script) previously, here is the link to my reply:
...
4,654
Posted By vikas.nv
There is an easy way out with perl too... ...
There is an easy way out with perl too...

perl -ne 'print if $. >= 10; exit if $. >= 15;' filename1

Here $. is a special variable that represents current line number.

Regards,
Visit my PERL...
6,707
Posted By vikas.nv
Here I have a perl script that does what you...
Here I have a perl script that does what you exactly want. As agrument pass the path you want to search for files:

use strict;
use File::Find;

my $path_to_start = $ARGV[0];
my...
7,202
Posted By vikas.nv
If you want to assign, its like this: @array...
If you want to assign, its like this:

@array = ($value_of_this_variable,$value_of_this_variable_also);

Visit My PERL Blog (http://techdiary-viki.blogspot.com/)
Showing results 1 to 7 of 7

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