Hey guys,
I am trying to look for the last file a user worked with in a script. If I use ls -t $HOME | head -1 this works sometimes for some strange reason. What I am trying to accomplish is to get the last file a user worked with in all subdirectories not just one single directory. Any help would be appreciated.
I am trying to look for the last file a user worked with in a script. If I use ls -t $HOME | head -1 this works sometimes for some strange reason. What I am trying to accomplish is to get the last file a user worked with in all subdirectories not just one single directory. Any help would be appreciated.