Skip to content

Instantly share code, notes, and snippets.

@ShannonScott
Last active November 27, 2019 22:11
Show Gist options
  • Save ShannonScott/e7355f8cb1c5adaf45bdcaa024495ee6 to your computer and use it in GitHub Desktop.
Save ShannonScott/e7355f8cb1c5adaf45bdcaa024495ee6 to your computer and use it in GitHub Desktop.
[Batch Process Files in Bash] Process a batch of files in Bash. #tags: bash

This is a super simple gist, but I never can remember it.

#!/bin/bash	

for file in *.jpg
do
    echo "converting $file"
    convert "$file" "$(basename "$file" .jpg).dds"
done

Originally found here: US Orthophotos 1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment