On Tue, March 4, 2008 3:50 pm, Alan wrote:
> On Tue, March 4, 2008 3:46 pm, Rob Hudson wrote:
>> I'll admit up front... I don't know my unix utility commands like I
>> should.  Thinks like sed, awk, cut, sort, uniq, etc can all make for
>> some powerful combinations.
>>
>> My goal via a shell script: Get the filename of the most recently
>> modified
>> file.
>>
>> I can do this:
>>> ls -t
>>
>>
>
> Assuming GNU:
>
> ls -l | tail -1
> ought to do it.
>
> -ajb
>

bah, stupid send button, why are you always in the wrong place?
That should be:
ls -tr | tail -1

-ajb


_______________________________________________
EUGLUG mailing list
euglug@euglug.org
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to