if [ $# -ne 1 ]
then
echo "No argument"
exit
fi
if [ ! -e $1 ]
then
echo "The given directory does not exist"
exit
fi
echo "The file with maximum length $1 dir is"
ls -lR $1|tr -s " "|cut -d " " -f 5,10|sort -n|tail -n 1
Study it today is an absolutely FREE website which has been created to provide notes and study materials to the people who are enthusiastic to study different technical and non-technical subjects in a different way....
0 comments:
Post a Comment