Collection of Bash code snippets, mostly one liners, to ease file handling among other things
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Victor Giers 0d6c6c4806 initial commit 3 年之前
README.md initial commit 3 年之前

README.md

Collection of Bash code snippets, mostly one liners, to ease file handling among other things

Collection of notes

rename files to reverse order

N=1; ls -tr -1 *.jpg | tac | while read file; do mv "$file" "$N".jpg; N=$((N+1)); done

rotate all images using imagemagick

mogrify -rotate 180 *.jpg
mogrify overwrites existing images which is what makes it different from convert