====== BASH - Find - Find the most recently modified file ====== find . -type f -printf '%TY-%Tm-%Td %TT %p\n' | sort ---- ===== Using awk ===== #!/bin/bash ls -lrt | grep ^- | awk 'END{print $NF}' **NOTE:** This lists either the last updated or created file in your current working directory.