pastebin - collaborative debugging tool
blankb.kpaste.net RSS

Difference between
modified post ae7e by Anonymous on Sat 4th Nov 2017 09:47
original post b2d7 by Anonymous on Tue 19th Sep 2017 04:35
Download diff
Show old version | new version | both versions

    
1-
export j=0; ls *.jpg | sort -n | while read x ; do let j+=1; fn=`printf %03d $j` ; echo mv \"$x\" p$fn.jpg; done | cat
1+
#odd
22
3-
renumber backwards:
3+
export j=-1; ls *.jpg | sort -n | while read x ; do let j+=2; fn=`printf %03d $j` ; echo mv \"$x\" p$fn.jpg; done | cat
54
6-
5+
#even renumber backwards:
7-
6+
export j=0; ls SCN*.jpg | sort -rn | while read x ; do let j+=2; fn=`printf %03d $j` ; echo mv \"$x\" p$fn.jpg; done | cat
87
9-
8+
#crop
10-
9+
ls | awk '1==1 {printf("mogrify -crop 2100x1400+250+0 -rotate 90 +repage %s\n",$0);}'
1110

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at