coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Utilities operate on the last file modified


From: Pádraig Brady
Subject: Re: Utilities operate on the last file modified
Date: Thu, 9 Feb 2023 21:45:47 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Thunderbird/109.0

On 09/02/2023 20:47, Dennis German wrote:
I have written a bunch of wrappers for several utilizes which operate on
the last file modified.

For example:

vil,  catl, headl, taill, wcl ...

rml which displays the file and asks for confirmation

mvl /newname/

chmodl a+r


Does anybody like this idea and would like to see it expanded or have
any related suggestions?

I use something similar with my "newest" script:
https://www.pixelbeat.org/scripts/newest

That can be called directly to list the newest files,
or could be leveraged for non modifying commands at least like:

  alias lessl='less $(newest -n1)'

I'm not sure "newest" is useful enough to make more generally available,
but I do use it most days TBH.

cheers,
Pádraig



reply via email to

[Prev in Thread] Current Thread [Next in Thread]