On 04/27/2014 04:23 PM, Carlos E. R. wrote:
Then I use:
while read FILES ; do echo "$FILES" # or whatever. done < text_file_containing_list
OUCH! You need to be careful with that. if you have a number of words on an input line the 'rest of the line" is assigned to the last variable of the line So if the text file contained onewordonaline twowords onaline three words onaline four words ona line five words on a line then yes, you version would soa up all the words on the line But one that began while read WORD WORD2 ; do echo "$WORD" ..... would produce Wrote four five That is why I use the "-print0" or the -printf or the \{\} options with find and xargs -- Quiet Great perfection seems incomplete, But does not decay; Great abundance seems empty, But does not fail. Great truth seems contradictory; Great cleverness seems stupid; Great eloquence seems awkward. As spring overcomes the cold, And autumn overcomes the heat, So calm and quiet overcome the world. -- Lao Tse, "Tao Te Ching" -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org