Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

rename files with sequential numbers linux

# rename random file names to incrementing numbers with prefix (new_name)
rename 'our $i; s/^[^.]+/sprintf "new_name-%02d", $i++/e' *.jpg
# output: new_name-00.jpg new_name-01.jpg etc
Comment

PREVIOUS NEXT
Code Example
Shell :: proxy v git 
Shell :: Batch programming check http call status 
Shell :: linux less command color 
Shell :: powershell alternative && 
Shell :: ifs bash 
Shell :: make bootable usb stick with linux console dd 
Shell :: raspberrypi install xserver 
Shell :: pylint install pi 
Shell :: sed replace single line with multi line 
Shell :: C:Ruby30-x64in uby.exe: Is a directory -- . (LoadError) 
Shell :: linux paginate output 
Shell :: zsh command not found scp 
Shell :: real user sys time shell 
Shell :: grep all except last 
Shell :: obisidian linux 
Shell :: git stop tracking files matching pattern 
Shell :: ubuntu change to thunar 
Shell :: linux set permissions for all files matching pattern 
Shell :: enable podman behavior as docker 
Shell :: how to copy stuff in git ter 
Shell :: curl copy from sftp 
Shell :: bash numbering odd filename 
Shell :: remove memcached ubuntu 
Shell :: ubuntu /not root-owned 0:1001 
Shell :: install media library 
Shell :: yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh 93684c35 
Shell :: homebrew install nasm 
Shell :: remove telegraf from dembian 
Shell :: view block devices and file systems on linux 
Shell :: raspberry pi autostart gui application 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =