rename all files in a folder with progressive numbers linux
for i in *.txt; do
new=$(printf "%01d.txt" "$a")
mv -i -- "$i" "$new"
let a=a+1
done
# "%01d.txt" 01 is the number of digits you want your name to be composed of,
# Example: %01.txt --> 1.txt , 2.txt, 3.txt, ..., 10.txt, ...
# %04.txt --> 0001.txt, 0002.txt, ..., 0010.txt, ...
Also in C++:
- shell script to reindex elasticsearch
- install newman-reporter-htmlextra
- linux remove large number of files
- how to define provider in resource block
- cmd kill process by pid
- anaconda for ubuntu 20.04
- how to uninstall heroku cli
- how to install heroku in terminal
- git rebase is not working
- ubuntu mysql-server default root password
- python
- powershell open chrome url in incognito
- bash get last field in line
- uninstall awesome window manager ubuntu
- redis server stop
- mongo install
- ubuntu stacer review
- nginx increase upstream size in conf
- fort awesome react github
- ubuntu pip3
- kubernetes get namespace
- e01 file car boardcomputer
- linux convert files in folder
- conda install pyserial