[Techtalk] Bash builtin "read" isn't working like I expect
Elizabeth Barham
lizzy at soggytrousers.net
Thu Oct 30 13:06:32 EST 2003
What, exactly, is the response? Here are my two files that I'm using
as a test case:
client.txt
~~~~~~~~~~
domain.com
bank.com
sample.org
master.csv
~~~~~~~~~~
domain.com,domain,com
bank.com,bank,com
sample.org,sample,org
This looks good to me:
~$ while read LINE; do echo $LINE; grep "$LINE" master.csv; done < client.txt
domain.com
domain.com,domain,com
bank.com
bank.com,bank,com
sample.org
sample.org,sample,org
Elizabeth
More information about the Techtalk
mailing list