This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #copy-flatten-unique.sh | |
| #copies files from all directories and subdirectories of the source, to single directory of the destination | |
| #ie flattens the directory structure | |
| #ensures only files with unique content in the destination, will rename the file if names clash | |
| #original application was to collect and review all attachements from an old gnu mailman (www.gnu.org/software/mailman) mailing list. | |
| Source=. | |
| Dest=~/Documents/dest | |
| if [ ! -d "$Dest" ]; then #create the destination directory if it does not exist |