if [ $# -eq 1 ]
then
echo "hard links to file $1 are "
var=`ls -i $1 | cut -d " " -f 1`
find . -inum $var
echo "soft link to $1 are"
find . -lname $1
else
echo "k;lk;"
fi
then
echo "hard links to file $1 are "
var=`ls -i $1 | cut -d " " -f 1`
find . -inum $var
echo "soft link to $1 are"
find . -lname $1
else
echo "k;lk;"
fi
No comments:
Post a Comment