mirror of
https://github.com/e1ven/Robohash.git
synced 2025-06-23 21:35:02 +00:00
dircurse.sh
This commit is contained in:
parent
1c80fc8ca6
commit
c3b752b93d
20
dircurse.sh
Executable file
20
dircurse.sh
Executable file
@ -0,0 +1,20 @@
|
||||
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
|
Loading…
x
Reference in New Issue
Block a user