Search Results

Search: Posts Made By: NobluesFDT
10,766
Posted By NobluesFDT
Thanks everyone here is what i end up using: ...
Thanks everyone here is what i end up using:

head -5 $filename | grep "pattern"

this sped things up significantly
5,017
Posted By NobluesFDT
It's odd, but sed worked for one pattern but not...
It's odd, but sed worked for one pattern but not the other. technically it worked for the second pattern but not the first.
I checked the pattern and it is correct.
5,017
Posted By NobluesFDT
Perl search and replace not working in csh script
I am using perl to perform a search and replace. It works at the command line, but not in the csh shell script

perl -pi -e 's@/Pattern@@g' $path/$file

I used the @ as my delimiter because the...
10,766
Posted By NobluesFDT
Should this speed up the script runtime, by not...
Should this speed up the script runtime, by not searching deeper into the file? That is my end goal, and right now i can't tell if it is speeding up.
Thanks for your help thus far.
8,083
Posted By NobluesFDT
Thanks, this worked great!
Thanks, this worked great!
8,083
Posted By NobluesFDT
pipe output to two files
I am using grep and I want the output to go into two files without going to the screen. I used tee to get the output into two files, but it is also putting the output on the screen which i do not...
10,766
Posted By NobluesFDT
Find first instance of pattern
I am using grep to find header info in a file and print it to another file. The header info only shows up on line 3 and 4 so i really don't need to search the remainder of the file. the grep -m...
Showing results 1 to 7 of 7

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