Horje
rename all files in a folder with progressive numbers linux Code Example
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, ...




Shell

Related
http-server npm Code Example http-server npm Code Example
ubuntu screen remove Code Example ubuntu screen remove Code Example
linux find where file is mounted Code Example linux find where file is mounted Code Example
Redis::CommandError: MISCONF Redis is configured to save RDB snapshot Code Example Redis::CommandError: MISCONF Redis is configured to save RDB snapshot Code Example
heroku installation check Code Example heroku installation check Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13