Structure Query Language, C programming, Java, Servlet, Jsp, Unix

Tuesday, 13 March 2012

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"

No comments:

Post a Comment