I need some help writing a shell script that will recursively find all files in a nice, organized directory structure, and then create flattened symbolic links to all of those files in another directory. By flattened, I mean that I don't want the symlinks to be structured - they all get dumped in one directory.I'm assuming some use of find or ls will be needed here, but I'm just not sure of the exact combination and Google hasn't been very helpful here.
5/17/2013 1:32:27 PM
#!/bin/bash for i in `find $1/*`; do echo $i; filename=$(/usr/bin/basename "$i") ln -s "$i" "$filename";done
5/17/2013 5:33:07 PM