|
From: | P |
Subject: | Re: ls display directory context? |
Date: | Thu, 20 Jan 2005 16:30:15 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124 |
Andreas Schwab wrote:
Nic Ferrier <address@hidden> writes:I've considered the semantics of the --dircontext switch. I think what I actually want is ls to be able to acknowledge what directory I told is to look in. So if I say: ls --dircontext childdir it comes back with: childdir/a.txt childdir/b.txt$ ls childdir | sed 's,^,childdir/,' (Uses -1 format and doesn't handle newlines in file names.)
I was going to suggest the same thing, but that doesn't handle when multiple childdirs are passed -- Pádraig Brady - http://www.pixelbeat.org --- Following generated by rotagator --- A common requirement in shell scripts is to print numbers with thousands seperators. You can use do this like: (notice the ') printf "%'d\n" 1234 --
[Prev in Thread] | Current Thread | [Next in Thread] |