Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash numbering even filename

 i=0; for f in [folder]/*; do echo mv "$f" "${f%/*}/$((i+=2)).[ext_file]"; done
Comment

bash numbering odd filename

 i=-1; for f in [folder]/*; do echo mv "$f" "${f%/*}/$((i+=2)).[ext_file]"; done
Comment

PREVIOUS NEXT
Code Example
Shell :: TestStand enter non ascii 
Shell :: hadoop change directory ownership 
Shell :: git flow feature finish without deleting branch 
Shell :: determine if command exists 
Shell :: got push SSH 
Shell :: linux remove lines from file 
Shell :: Kubernetes cluster unreachable: Get "https://192.168.56.10:6443/version?timeout=32s": net/http: TLS handshake timeout 
Shell :: git out of sync 
Shell :: Bash script to check permission and store it 
Shell :: mysqltuner mysql administrator password in plesk server 
Shell :: linux subsystem mount file into windows 
Shell :: How to "git status" 
Shell :: wsl install portainer 
Shell :: fix ubuntu certificates 
Shell :: gitlab clone branch 
Shell :: virtual network is not active 
Shell :: ls -la sort time file 
Shell :: run redis o docker no auth 
Shell :: how to open a iso file in linux 
Shell :: ubuntu extract zip 
Shell :: install docker compose on centos 
Shell :: curl time response 
Shell :: bash date 
Shell :: turn off wiregurad 
Shell :: which path of executable powershell 
Shell :: powershell convert text 20MB to bytes 
Shell :: how to zip a folder in putty 
Shell :: some github markup badges 
Shell :: ruby on rails install 
Shell :: linux gzip multiple files 
ADD CONTENT
Topic
Content
Source link
Name
6+8 =