[Gllug] Locating Subdirectories
Nix
nix at esperi.org.uk
Wed Jul 28 14:10:45 UTC 2004
On Wed, 28 Jul 2004, Stig Brautaset stipulated:
> On Wed, Jul 28, 2004 at 08:23:21AM +0100, Nix wrote:
>> >> I need to obtain the names of all the subdirectories in the
>> >> current directory.
> ...
>> >
>> > find . -type d -maxdepth 1 -printf "%f\n"
>>
>> Why -printf, not just -print?
>>
>> (Or, with GNU find, nothing at all as the operation, as -print is the
>> default?)
>
> Because he wanted the names of the subdirectories, not their paths.
Ah yes, um. I misread.
--
`The copyright file is for everyone. That we make it available in
plain-text, uncompressed form rather than in spinning, throbbing
OpenGL-rendered 3D text over a thumping dance music soundtrack is a
feature, not a bug.' --- Branden Robinson
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list