From 0d6c6c4806a2ebb2953caebd2c5afe3b4a2861c0 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Mon, 18 Jan 2021 13:52:37 +0100 Subject: [PATCH] initial commit --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..fe51c4d --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# 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```