Tag: batch
-
Batch recursive permission change with find and chmod
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 {} \;
-
Resize images with Imagemagick
How to batch resize images in linux with imagemagick for image in *.jpg; do convert “$image” -resize 250×250 “thumb.$image”; done
-
how to batch file rename in bash shell
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