hi guys,
i want to read through a file line by line identifying records that match a pattern. i have found some code that does what i want -
grep TEXT /my/file |
while IFS= read -r LINE
do
echo $LINE
done
can someone just tell me what the 'IFS=' is actually doing ?
thanks !!
i want to read through a file line by line identifying records that match a pattern. i have found some code that does what i want -
grep TEXT /my/file |
while IFS= read -r LINE
do
echo $LINE
done
can someone just tell me what the 'IFS=' is actually doing ?
thanks !!