initial commit
This commit is contained in:
7
README.md
Normal file
7
README.md
Normal file
@@ -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```
|
||||||
Reference in New Issue
Block a user