Last active
December 18, 2019 14:49
-
-
Save SalihKARAHAN/10e032f0aafe493ee1bb9fde0ee8426f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Salih KARAHAN | |
# Klasördeki dosya isimlerini numaralandırarak değiştiren sh scripti | |
cd "C:\Users\skarahan\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets" | |
FILES=$(ls | grep -v sh) | |
COUNTER=1 | |
for fileName in $FILES | |
do | |
mv $fileName $COUNTER.jpg | |
echo "The file name is $fileName renamed as $COUNTER.jpg" | |
COUNTER=$(expr $COUNTER + 1) | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment