Search Results

Search: Posts Made By: bing
1,655
Posted By sgruenwald
regex="abx"; for file in *.cvs; do awk -v...
regex="abx"; for file in *.cvs; do awk -v str=$regex '{if ($6==str) print $1,$3,$4}' $file >$file.out; done
1,655
Posted By rdcwayx
regex="abx" cd /workspace/folderout for...
regex="abx"
cd /workspace/folderout

for file in *.cvs
do
nawk -v str=$regex '{if ($6 ~ v) print $1,$3,$4 > FILENAME ".out"}' $file
done
Showing results 1 to 2 of 2

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