passing the most recent file in a directory to a program

You can pass it like this:

$ vim "$(ls -t | head -n1)"

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top