cancel
Showing results for 
Search instead for 
Did you mean: 

Get last element in a list

SOLVED
Go to solution
Leo The Cat
Regular Advisor

Get last element in a list

Hi Guys

How to have the last element like this

ls -rt at.* | .......
to have the most recent file !

Bests regards
Den
2 REPLIES
Jeroen Peereboom
Honored Contributor
Solution

Re: Get last element in a list

| tail -1

Check tail's man page.

JP
Leo The Cat
Regular Advisor

Re: Get last element in a list

Thanks !