Subscribe to Get Free Material Updates!
Visit my new blog WebData Scraping - Web Scraping Service provider company in India.

Write a script to display the last modified file.


record=`ls -lt | head -n 2`
filename=`echo $record | cut -d " " -f 11`
echo "Last modified file is $filename"
Output: 

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes