Pages

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


No comments:

Post a Comment