pastebin - collaborative debugging tool
blankb.kpaste.net RSS


Renumber
Posted by Anonymous on Fri 9th Jun 2017 05:17
raw | new post

  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

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