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

Next revision
Previous revision
terminal:num_files_from_start_num [2024/04/19 14:58] – created meloterminal: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.1713538686.txt.gz · Last modified: (external edit)