postheadericon Write a script to display the last modified file


File Name : ex24.sh


clear
echo "Enter Directory Name :\c"
read dir1

cd $dir1

ls -lt | head -2 | tail -1 |cut -d " " -f 10


0 comments:

Follow by Email

Total Pageviews

© BipinRupadiya.com. Powered by Blogger.