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

Re: combine two commands via pipe



On Fri, Jul 26, 2024 at 10:00:48 +0800, coreyh@free.fr wrote:
> I found this works though it's ugly.
> 
> $ sudo ls -ltr "/tmp/$(ls /tmp |grep apache)"
> total 4

Just use a glob.

    sudo ls -ltr /tmp/*apache*


Reply to: