Search Results

Search: Posts Made By: reggiej
4,904
Posted By reggiej
zazzybob, perl -pi -e '$_ = "" if ( $. == 1...
zazzybob,

perl -pi -e '$_ = "" if ( $. == 1 );' large_file
I am trying to convert the above perl command line you reference to a script.
I am not sure what the -pi does for the command line....
4,904
Posted By reggiej
I will give these methods a try. Thanks
I will give these methods a try. Thanks
4,904
Posted By reggiej
perl question - removing line from input file
In perl I want to do remove the top line of my input file then process the next line. I want to do something like
head -1 inputfile > temp
grep -v temp inputfile > newinputfile
cp newinputfile...
Showing results 1 to 3 of 3

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