Sensible handling of filenames with blanks (in bash scripts)
Thursday, March 9, 2006 10:04:29 PM
IFS=$'\n'
This tells bash to interprete only newlines as file seperators. Useful for grep, find, etc. as parameters of a for-loop. Obviously not very helpful if you have multiple file names in a line.
Found in the BSD-Team Dresden Wiki






