mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
21 lines
293 B
Bash
Executable File
21 lines
293 B
Bash
Executable File
function dircurse()
|
|
{
|
|
count=0
|
|
cd $1
|
|
for i in `ls -U`
|
|
do
|
|
echo mv $i $count#$i
|
|
count=`expr $count + 1`
|
|
if [ -d $i ]
|
|
then
|
|
dircurse $i
|
|
fi
|
|
done
|
|
}
|
|
|
|
if [ $? -lt 1 ]
|
|
then
|
|
echo "Usage: $0 directory"
|
|
fi
|
|
dircurse $1
|