Aug 10, 2010 06:07
99% of what you need to do to perform a search n replace for an incorrectly symlinked directory:
$(ls -l | grep -v "^total" | awk '{print " ln -s " gensub(/\/mnt\/loop\/writeable/, "\"/media/Iomega HDD/simonPictures", 1, $11) "\" " $9}') > doIt.sh