Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Bash by CCR-60 ( 15 years ago )
#! /bin/bash
mkdir /tmp/mv-scripts
ls | grep .mp3 > /tmp/mv-scripts/name
grep -n mp3 /tmp/mv-scripts/name > /tmp/mv-scripts/name_grep
tail -n 1 /tmp/mv-scripts/name_grep > /tmp/mv-scripts/name_tail
KOL_VO_FILES=`head -c 1 /tmp/mv-scripts/name_tail`
echo $KOL_VO_FILES
while (("$KOL_VO_FILES" > 0))
do
ALT_NAME=`head -n 1 /tmp/mv-scripts/name`
pwgen -1 > /tmp/mv-scripts/new-name.tmp
NEW_NAME=`cat /tmp/mv-scripts/new-name.tmp`.mvtmp
mv "$ALT_NAME" "$NEW_NAME"
ls | grep .mp3 > /tmp/mv-scripts/name
grep -n mp3 /tmp/mv-scripts/name > /tmp/mv-scripts/name_grep
tail -n 1 /tmp/mv-scripts/name_grep > /tmp/mv-scripts/name_tail
KOL_VO_FILES=`head -c 1 /tmp/mv-scripts/name_tail`
# echo $KOL_VO_FILES
done
ls
rm -r /tmp/mv-scripts
Revise this Paste