Operating System - Linux
1753479 Members
5492 Online
108794 Solutions
New Discussion юеВ

Re: 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 2
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 !