FILE_PATH=/path/to my/text file FILE_PATH=echo FILE_PATH | tr -s " " "\\ "
This second line should be
FILE_PATH=echo $FILE_PATH | tr -s " " "\\ "
but I donβt think it matters. Once you have reached this stage, you are late. The variable has been set and spaces are escaped or the variable is incorrect.
FILE_PATH = '/ path / to my / text file
hymie 09 Oct '12 at 19:29 2012-10-09 19:29
source share