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 :: sum of files size in linux 
Shell :: Pinterest API github 
Shell :: start Win-KeX in Seamless mode with sound support 
Shell :: oh-my-posh.psm1 porque la ejecución de scripts está deshabilitada en este sistema 
Shell :: hadoop get files 
Shell :: is needed to run `file_system` for your system 
Shell :: how to revert git apply patch 
Shell :: helm set environment variables 
Shell :: linux pass a programm to background 
Shell :: how to get an object based on a substring jq 
Shell :: ros 2 binary install 
Shell :: linux set global server name 
Shell :: forward parameters batch script 
Shell :: create raid5 linux 
Shell :: debian zbar install 
Shell :: pacman mirrorlist generator 
Shell :: export installed application using cmd 
Shell :: cannot spawn askpass: No such file or directory 
Shell :: how to find out specifics on m otherboard using linux mint 20.3 
Shell :: install check_mk ubuntu 20.04 
Shell :: visual studio copy nuget packages to another project command line 
Shell :: alembic not found 
Shell :: install calibre on centos terminal 
Shell :: wget raw 
Shell :: create theme visual studio code 
Shell :: change git 
Shell :: homestead 
Shell :: git move latest commit to new branch 
Shell :: how to tell if i have cuda installed 
Shell :: show saved network connections linux 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =