You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
287 B
13 lines
287 B
#!/bin/bash
|
|
START=$(date +%s%N)
|
|
|
|
if [ -s $1 && ! -z $2 ];then
|
|
for i in `find -maxdepth 1 -type d|awk '/^\.\/[0-9].*/{gsub("./","",$0);print}'|sort|xargs`
|
|
do
|
|
ln -srf "$1" "$2"
|
|
done
|
|
fi
|
|
|
|
END=$(date +%s%N)
|
|
DIFF=$((($END - $START)/1000000))
|
|
echo "Время выполнения: $DIFF мс"
|