Search Results

Search: Posts Made By: MadeInGermany
3,274
Posted By MadeInGermany
Looks too complicated. Why 3 input files? How...
Looks too complicated.
Why 3 input files?
How does you pattern_grp file look like?
Say it looks like
H_A hot.*aaa.*
C_B cold.*bbb.*
C_A cold.*aaa.*The value pairs seem related.?
Then you can...
3,274
Posted By MadeInGermany
Another guess what you might want: while IFS=...
Another guess what you might want:
while IFS= read pat
do
printf "%s match %s times\n" "$pat" $(grep -c "$pat" input_file)
done < pattern_filehot.*aaa.* match 2 times
cold.*bbb.* match 1 times...
Showing results 1 to 2 of 2

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