Hi! I'm working on a Bash shell script but i've stucked at one point. I have a code like below
for phrase in `cat $PHRASE_REPOSITORY/$phrasedir/weighted.tmp`; do
Don't think about variables, they're only directory names. But the problem is this: Since weighted.tmp file contains phrases like
three four five
when i grab the cat
ed values into `phrase' variable it takes the values "one", "two", "three", "four" seperately. How can i get the file data line by line? Is there any commands that match only newlines, not all printable spaces? Thanks!