Hey guys,<br><br>I'm writing a little sed script to append a few lines to a file and I've run in to a problem. The script looks like this:<br><br>#! /bin/sh<br><br>find ./ -type f -name 'FileToFind' -print | while read i<br>
do<br> sed -i[bak] '$a\<br>stuff to append\<br>more stuff to append' $i<br>done<br><br>It works fine in testing, however in practice the absolute path to the file(s) contains a directory with a space in the name (Thanks, Apple...). <br>
Anyone know of a way to have the path sent to sed in quotes? <br><br>-Jonathan<br>