ls output

Ben Eisenbraun bene-Gk2boCrsRs1AfugRpC6u6w at public.gmane.org
Mon Oct 20 14:42:25 EDT 2008


On Mon, Oct 20, 2008 at 02:30:47PM -0400, Don Levey wrote:
> I would have expected some sort of command-line option to ls to at least
> prepend the full path to the directory entry, but there doesn't seem to
> be one.  Is there an "improved" ls that could do this, or is there a
> shell trick that can handle it?

Use 'find'.

E.g.:

find . -name "*.xml"

and it will print out the paths from . to your .xml files.

-b

--
and the end of all our exploring will be to arrive where we started and
know the place for the first time.                         <t.s. eliot>





More information about the Discuss mailing list