meta

what's the meta about say it ditto dot net?

User Tools

Site Tools


terminal:num_files_from_start_num

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
terminal:num_files_from_start_num [2025/08/16 01:32] – external edit 127.0.0.1terminal:num_files_from_start_num [2025/08/16 02:30] (current) – removed melo
Line 1: Line 1:
-<code> 
-i=29 # add 1 to last number in batch 
-for f in *.png; do 
-   dest=$(printf "%02d" $i).png 
-   mv "$f" "$dest" 
-   i=$((i + 1)) 
-done 
-</code> 
  
-[[https://stackoverflow.com/questions/57860821/rename-files-with-incrementing-number-starting-at-certain-number|source]] 
terminal/num_files_from_start_num.1755307951.txt.gz · Last modified: by 127.0.0.1