This file contains 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
# chmod 755 copyflat.sh | |
# ./copyitune.sh m4a /my/iTune/ /my/destination/ | |
# $1 = file extension. | |
# $2 = source directory. | |
# $3 = destination directory. | |
echo "Copy all $1 files in $2 to $3" | |
find $2 -name "*.$1" -exec cp {} $3 \; |
This file contains 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
# chmod 755 changedate.sh | |
# ./changedate.sh my_edited_photo.jpg 201504010000 | |
# $1 = filename. | |
# $2 = date in YYYYMMDDhhmm. | |
echo "Changing the creation date of file: $1 to date: $2" | |
touch -t $2 $1 . |