1 vote

How can I use the last changed file as an argument in linux?

No, there is no really simple way, largely because this needs to work with arbitrary file names. So while something like ls -tr | tail -n1 will show the last file modified in the current directory, it ...
terdon's user avatar
  • 53.4k

Only top scored, non community-wiki answers of a minimum length are eligible