dev/bash/ld_symlinks/tmp1.sh

11 lines
236 B
Bash
Raw Normal View History

2011-04-09 19:06:44 +04:00
for baselib in "$@"
do
shortlib=$baselib
while extn=$(echo $shortlib | sed 's/\.[0-9][0-9]*$//')
[ -n "$extn" ]
do
shortlib=$(basename $shortlib $extn)
ln -s $baselib $shortlib
done
done