Skip to content

Instantly share code, notes, and snippets.

@SalihKARAHAN
Last active December 18, 2019 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SalihKARAHAN/10e032f0aafe493ee1bb9fde0ee8426f to your computer and use it in GitHub Desktop.
Save SalihKARAHAN/10e032f0aafe493ee1bb9fde0ee8426f to your computer and use it in GitHub Desktop.
#!/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