Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #175774

Re: [Newbie] Can ls command format output my way?

From Kushal Kumaran <kushal@locationd.net>
Newsgroups linux.debian.user
Subject Re: [Newbie] Can ls command format output my way?
Date 2016-12-17 17:10 +0100
Message-ID <sPpIB-3oI-7@gated-at.bofh.it> (permalink)
References <sPppg-31r-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Richard Owlett <rowlett@cloud85.net> writes:

> ls -R /media/data produces the content but not the NEEDED format.
>
> I want a list like:
> /media/data/dir1/filea
> /media/data/dir1/fileb
> /media/data/dir1/subdir1/filex
> /media/data/dir1/subdir1/filey
> /media/data/dir1/subdir1/filez
> /media/data/dir2/filea
> /media/data/dir2/fileb
> /media/data/dir2/subdir1/filex
> /media/data/dir2/subdir1/filey
> /media/data/dir2/subdir1/filez
> et cetera
>
> I don't wish anything but full path to all files in a top level
> directory.
>

find /media/data -type f

> Followup question how should I found the answer for myself. I looks
> basic enough ...
> TIA

I don't recall now when I first learnt about the find command.  Now I
use it all the time.  The Unix Power Tools book
(http://shop.oreilly.com/product/9780596003302.do) has a chapter on the
find command.  If you have access to an O'Reilly Safari account, you
could browse through it.

-- 
regards,
kushal

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[Newbie] Can ls command format output my way? Richard Owlett <rowlett@cloud85.net> - 2016-12-17 16:50 +0100
  Re: [Newbie] Can ls command format output my way? Lars Noodén <lars.nooden@gmail.com> - 2016-12-17 17:00 +0100
    Re: [Newbie] Can ls command format output my way? David Wright <deblis@lionunicorn.co.uk> - 2016-12-17 18:10 +0100
      Re: [Newbie] Can ls command format output my way? Richard Owlett <rowlett@cloud85.net> - 2016-12-18 16:50 +0100
        Re: [Newbie] Can ls command format output my way? emetib <chadbrabec@gmail.com> - 2016-12-18 19:10 +0100
  Re: [Newbie] Can ls command format output my way? The Wanderer <wanderer@fastmail.fm> - 2016-12-17 17:00 +0100
  Re: [Newbie] Can ls command format output my way? Kushal Kumaran <kushal@locationd.net> - 2016-12-17 17:10 +0100
  THANK YOU [Re: [Newbie] Can ls command format output my way?] Richard Owlett <rowlett@cloud85.net> - 2016-12-17 18:20 +0100
  Re: [Newbie] Can ls command format output my way? emetib <chadbrabec@gmail.com> - 2016-12-17 19:00 +0100

csiph-web