Search Results

Search: Posts Made By: jevaba
2,229
Posted By jevaba
Thanks, Jim. Was able to get it using your awk: ...
Thanks, Jim. Was able to get it using your awk:

variable2=`find . -name "rpbol*" -print | xargs grep -li $variable1`
variable3=`awk '{ if(FNR==2) {print substr($0,1,7); exit} }' $variable2`
...
2,229
Posted By jevaba
Extract Data from a file
I need to create a script to extract some specific data from a file. I locate the file using the find command:

find . -name "rpbol*" -print | xargs grep -li [pattern to search for]

Once I...
Showing results 1 to 2 of 2

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