Search Results

Search: Posts Made By: wxboo
3,601
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 1 of 1

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