DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
bash numbering odd filename
i=-1; for f in [folder]/*; do echo mv "$f" "${f%/*}/$((i+=2)).[ext_file]"; done
PREVIOUS
NEXT
Tagged:
#bash
#numbering
#odd
#filename
ADD COMMENT
Topic
COMMENT
Name
4+2 =
Submit