bug-coreutils
[Top][All Lists]
Advanced

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

Re: ls display directory context?


From: James Youngman
Subject: Re: ls display directory context?
Date: Thu, 20 Jan 2005 12:10:33 +0000
User-agent: Mutt/1.3.28i

On Thu, Jan 20, 2005 at 12:57:39AM +0000, Nic Ferrier wrote:

> Is there any reason (apart from POSIX compliance) why ls cannot output
> file lists with the directory context attached to the file?
> 
> For example:
> 
>   $ cd somedir
>   $ ls --with-dir-ctx childdir 
>   childdir/in.txt childdir/my.txt childdir/craft.txt
> 
> This simple feature would replace a lot of complex find invocations
> for me.

What sort of find invocation?   Something like just

        find childdir | xargs 

perhaps?   Or if you need to know more about the files,

        find childdir -maxdepth 1 -ls 

?

Regards,
James.





reply via email to

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