I use the following string as a base. You can certainly read the find
manual for other option, but find gets quite complex including checking for
several date  fields either relatively or absolutely and some boolean logic
operators to boot.

But the following command will put a list of files into the /tmp directory.
I like to use tmp because it automatically gets cleaned out every reboot,
and perhaps on a regular basis also.

find DirName -print > /tmp/FileList.txt



DirName is any directory in your file system including "." for the current
directory. there is a minus sign before the print, and if you replace print
with ls then you will get information similar to the unix command "ls -l"
Best Wishes,

Jonathan Cohn


On Mon, Mar 6, 2017 at 9:07 AM CHUCK REICHEL <
soundpicturerecord...@gmail.com> wrote:

> Hi Jonathan,
> What are the steps to print out "all the files in a directory subtree"?
> I often would like to grab all the names of  a folder full of pro tools
> preset names I've done so I can put them in to a text doc for quick
> referencing them  while looking for that perfect PT preset! :)
> Thanks
> Chuck
>
>
> CHUCK REICHEL
> soundpicturerecord...@gmail.com
> www.SoundPictureRecording.com
> 954-742-0019 <(954)%20742-0019>
> Isaiah 26 : 3
>  Thou wilt keep him in perfect peace, whose mind is stayed on thee:
> because he trusteth in thee.
>
> In GOD I Trust
>
> On Mar 6, 2017, at 8:54 AM, Jonathan Cohn wrote:
>
> mdfind can be quite powerful, since it uses the index's that spotlight
> uses, though if your spotlight files are not working correctly it will not
> work either. Your post reminded me that I often do a two step process when
> using the find command. I will print out all the files in a directory
> subtree, and then work on the results of the output. This way if I make a
> mistake I don't have to rescan the directory tree, but can just redo the
> search command.
>
>
> On Mon, Mar 6, 2017 at 7:25 AM Sandi Jazmin Kruse <sandi1...@gmail.com>
> wrote:
>
> i use a combo of mdfind and grep, i dont touch, though ss am being a good
> girl
>
> On 3/6/17, 'Roland Zitzke' via MacVisionaries
> <macvisionaries@googlegroups.com> wrote:
> > Jon, you are absolutely right, sorry for the over-simplification here.
> > I guess I was trying to make things more simple then they are to
> advertise
> > the use of the terminal for tasks like searching for files.
> > Personally I use the terminal quite frequently because it is "always
> > accessible"
> > But once you get to the point where you want - for instance - to filter
> > your search results through egrep you'll need to write a real RegEx with
> .*
> >
> > to match all characters.
> > /Roland
> >
> >
> > Am Sonntag, 5. März 2017 21:00:51 UTC+1 schrieb Jon:
> >>
> >> Quick note here, the pattern match you mention below is not considered a
> >> Regular expression but instead a "glob expression".
> >>
> >> The primary difference is that in a glob * means match any number of any
> >> characters, while in a regular expression it would be ".*" in other
> words
> >>
> >> having a period before the *. This is because regular expressions use
> all
> >>
> >> punctuation to mean something special
> >>
> >> The period is used to match any character.
> >> The star means zero or more of the immediately preceding pattern (in
> this
> >>
> >> case . or any character).
> >>
> >> Generally in UNIX like systems which terminal brings you to a bSD UNIX
> >> environment, most places where you are requesting a matching of file
> names
> >>
> >> u   are using a glob pattern and not a regular expression.
> >> Best wishes,
> >>
> >> Jonathan Cohn
> >>
> >>
> >>
> >>
> >> On Mar 5, 2017, at 8:25 AM, 'Roland Zitzke' via MacVisionaries <
> >> macvisi...@googlegroups.com <javascript:>> wrote:
> >>
> >>
> >>
> >> I have some big folders that I need to search through forcertain files.
> I
> >>
> >>> know i should be able to do it with finder but for some reason that
> does
> >>>
> >>> not work so well for me in the latest os x. I was wondering if there
> are
> >>>
> >>> any good vo accessible finder alternatives that work well?
> >>>
> >>> Well, it may sound trivial but if I need to search a folder I simply
> open
> >>>
> >> Terminal, navigate to the folder I want to start my search from and then
> >> type
> >> find ./ -name MyFileStartsWith*
> >> replacing MyFileStartsWith with the part of the file name I am looking
> >> for. You can use any regular expression for your All files matching your
> >> criteria are then listed.
> >> /Roland
> >>
> >>
> >> --
> >> The following information is important for all members of the Mac
> >> Visionaries list.
> >>
> >> If you have any questions or concerns about the running of this list, or
> >> if you feel that a member's post is inappropriate, please contact the
> >> owners or moderators directly rather than posting on the list itself.
> >>
> >> Your Mac Visionaries list moderator is Mark Taylor. You can reach mark
> at:
> >>
> >> macvisionari...@googlegroups.com <javascript:> and your owner is Cara
> >> Quinn - you can reach Cara at cara...@caraquinn.com <javascript:>
> >>
> >> The archives for this list can be searched at:
> >> http://www.mail-archive.com/macvisionaries@googlegroups.com/
> >> ---
> >> You received this message because you are subscribed to the Google
> Groups
> >>
> >> "MacVisionaries" group.
> >> To unsubscribe from this group and stop receiving emails from it, send
> an
> >>
> >> email to macvisionarie...@googlegroups.com <javascript:>.
> >> To post to this group, send email to macvisi...@googlegroups.com
> >> <javascript:>.
> >> Visit this group at https://groups.google.com/group/macvisionaries.
> >> For more options, visit https://groups.google.com/d/optout.
> >>
> >>
> >>
> >
> > --
> > The following information is important for all members of the Mac
> > Visionaries list.
> >
> > If you have any questions or concerns about the running of this list, or
> if
> > you feel that a member's post is inappropriate, please contact the
> owners or
> > moderators directly rather than posting on the list itself.
> >
> > Your Mac Visionaries list moderator is Mark Taylor.  You can reach mark
> at:
> > macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn
> - you
> > can reach Cara at caraqu...@caraquinn.com
> >
> > The archives for this list can be searched at:
> > http://www.mail-archive.com/macvisionaries@googlegroups.com/
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "MacVisionaries" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to macvisionaries+unsubscr...@googlegroups.com.
> > To post to this group, send email to macvisionaries@googlegroups.com.
> > Visit this group at https://groups.google.com/group/macvisionaries.
> > For more options, visit https://groups.google.com/d/optout.
> >
>
> --
> The following information is important for all members of the Mac
> Visionaries list.
>
> If you have any questions or concerns about the running of this list, or
> if you feel that a member's post is inappropriate, please contact the
> owners or moderators directly rather than posting on the list itself.
>
> Your Mac Visionaries list moderator is Mark Taylor.  You can reach mark
> at:  macvisionaries+modera...@googlegroups.com and your owner is Cara
> Quinn - you can reach Cara at caraqu...@caraquinn.com
>
> The archives for this list can be searched at:
> http://www.mail-archive.com/macvisionaries@googlegroups.com/
> ---
> You received this message because you are subscribed to the Google Groups
> "MacVisionaries" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to macvisionaries+unsubscr...@googlegroups.com.
> To post to this group, send email to macvisionaries@googlegroups.com.
> Visit this group at https://groups.google.com/group/macvisionaries.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> The following information is important for all members of the Mac
> Visionaries list.
>
> If you have any questions or concerns about the running of this list, or
> if you feel that a member's post is inappropriate, please contact the
> owners or moderators directly rather than posting on the list itself.
>
> Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at:
> macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn -
> you can reach Cara at caraqu...@caraquinn.com
>
> The archives for this list can be searched at:
> http://www.mail-archive.com/macvisionaries@googlegroups.com/
> ---
> You received this message because you are subscribed to the Google Groups
> "MacVisionaries" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to macvisionaries+unsubscr...@googlegroups.com.
> To post to this group, send email to macvisionaries@googlegroups.com.
> Visit this group at https://groups.google.com/group/macvisionaries.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> The following information is important for all members of the Mac
> Visionaries list.
>
> If you have any questions or concerns about the running of this list, or
> if you feel that a member's post is inappropriate, please contact the
> owners or moderators directly rather than posting on the list itself.
>
> Your Mac Visionaries list moderator is Mark Taylor. You can reach mark at:
> macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn -
> you can reach Cara at caraqu...@caraquinn.com
>
> The archives for this list can be searched at:
> http://www.mail-archive.com/macvisionaries@googlegroups.com/
> ---
> You received this message because you are subscribed to the Google Groups
> "MacVisionaries" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to macvisionaries+unsubscr...@googlegroups.com.
> To post to this group, send email to macvisionaries@googlegroups.com.
> Visit this group at https://groups.google.com/group/macvisionaries.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
The following information is important for all members of the Mac Visionaries 
list.

If you have any questions or concerns about the running of this list, or if you 
feel that a member's post is inappropriate, please contact the owners or 
moderators directly rather than posting on the list itself.

Your Mac Visionaries list moderator is Mark Taylor.  You can reach mark at:  
macvisionaries+modera...@googlegroups.com and your owner is Cara Quinn - you 
can reach Cara at caraqu...@caraquinn.com

The archives for this list can be searched at:
http://www.mail-archive.com/macvisionaries@googlegroups.com/
--- 
You received this message because you are subscribed to the Google Groups 
"MacVisionaries" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to macvisionaries+unsubscr...@googlegroups.com.
To post to this group, send email to macvisionaries@googlegroups.com.
Visit this group at https://groups.google.com/group/macvisionaries.
For more options, visit https://groups.google.com/d/optout.

Reply via email to