Create Thumbnails from a bunch of images

Linux Code snippet. Ever wated to batch create thumbnails? “musclecarr” posted this bash script to create thumbnails of all images of a specific type. It uses imagemagick and specifically the convert command. minor modifications done to it and comments added for easy understanding, here it is :

bash file listing with markup

every now and again we need to take a bunch of file names from a folder and output then into a single file. sometimes with markup around them. Well there’s always ls.

this nets you the following in a file: 0.png 1.png blockcontent_h.png blockcontent_s.png blockcontent_v.png blockheader.png what if you want markup around the file […]