pastebin - collaborative debugging tool
blankb.kpaste.net RSS


Renumber
Posted by Anonymous on Tue 19th Sep 2017 04:35
raw | new post
view followups (newest first): Renumber by Anonymous
modification of post by Anonymous (view diff)

  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
  2.  
  3. renumber backwards:
  4. 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

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