Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i in $(ls /path/to/your-directory); do
- name=$(echo "$i" | cut -d '_' -f1)
- num=$(echo "$i" | cut -d'_' -f2)
- num1=$(( num + 2048 ))
- mv "$i" "${name}_$num1"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement