Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

rename with zeros padding in loop inside subfolders

for dir in ./*/     # list directories in the form "./dirname/"
do
    dir=${dir%*/}      			# remove the trailing "/"
    cd ${dir}					# go in subfolder	
    zmv '(*).pdf' '${1//(#m)<->/${(l[3][0])MATCH}}.pdf'		# do the renaming
    cd ..						# return to main folder
done
Comment

PREVIOUS NEXT
Code Example
Shell :: wls update ubuntu distribution 
Shell :: xrand 2 monitors as one 
Shell :: powershell read registry value remote computer 
Shell :: install mysql majaro 
Shell :: ssh remove file command 
Shell :: bash complete 
Shell :: ssh no host key files found 
Shell :: How to install google consent script for CMP banner 
Shell :: protocol error: filename does not match request 
Shell :: ctrl+z equivalent in vim 
Shell :: bash search in binary file 
Shell :: choco install fluxcd 
Shell :: Install PNPM in your linux distro 
Shell :: sort specific extension by date 
Shell :: wsl networking 
Shell :: html5 parser 
Shell :: ubuntu dind docker image 
Shell :: powershell show doskey 
Shell :: how to run an executable in terminal in parallel 
Shell :: how to upgrade a kubeone cluster 
Shell :: how to retain ownership permissions when copying file linux 
Shell :: http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu focal main 
Shell :: ubuntu sysmon 
Shell :: virt manager share folder with virtual machine windows 10 
Shell :: quick checkers for ubuntu 
Shell :: watch bash second 
Shell :: cups disable and reneable a printer 
Shell :: how to remove all images in folder mac terminal 
Shell :: how to make copy of branch in git 
Shell :: libmodplug linux install 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =