Batch recursive permission change with find and chmod
#change directories permissions
find / -type d -exec chmod 755 {} \;
#change files permission
find / -type f -exec chmod 644 {} \;
Batch recursive permission change with find and chmod
#change directories permissions
find / -type d -exec chmod 755 {} \;
#change files permission
find / -type f -exec chmod 644 {} \;
How to batch resize images in linux with imagemagick
for image in *.jpg; do convert "$image" -resize 250x250 "thumb.$image"; done
This is a quick way of renaming a batch of files matching a reg exp in bash.
ls foo*.jpg | awk '{print("mv "$1" "$1)}' | sed 's/foo/bar/2' | /bin/sh