Useful bash commands

From RpWiki
Revision as of 19:30, 18 April 2010 by Rp (talk | contribs) (add imagemagick)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Commands

Change permissions on files and folders with find

 find . -type f -exec chmod 664 {} \;
 find . -type d -exec chmod 755 {} \;

Folder resize via imagemagick

 for file in *.jpg; do convert $file -resize 1600x1600 /exportfoler/$file; done;