Resize Images in Linux Command Line

// resize jpg’s
for file in *.jpg; do convert $file -resize 50% re-$file; done
for file in *.png; do convert $file -rotate 90 rotated-$file; done

Advertisements

Windows – How to get file names as Text

If you want to get all the file names in a given folder and output it to text file enter the command line prompt and browse to the directory, then type:
dir /B *.* > dir_file.txt

You can then open the file dir_file.txt in a text editor to view the files.