
Originally Posted by
N0WH3R3K1D
Thank you for your code; however, I would like only symlinks to the hidden directories in the home directory into the Preferences directory and not the hidden files in the home directory. Is there a way to do this?
Oh sure, sorry. Here you go:
Code:
#!/bin/bash
for a in `find . -maxdepth 1 -mindepth 1 -type d -name ".*"`;
do b=`echo $a | sed 's|^[.][/]||'`;
ln -s `pwd`'/'$b Preferences/`echo $b |sed 's/^[.]//'`;
done
Again, it's a little messy, but it works. (I'm obviously no hand at bash.)
Bookmarks