Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: How to harvest files from several directories - CLI

  1. #11
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,792

    Re: How to harvest files from several directories - CLI

    You got to learn how to use 'find'. Locate only searches for things, it cannot execute commands. If you know how to use find, then you almost never need to use a loop.

  2. #12
    Join Date
    May 2009
    Location
    Courtenay, BC, Canada
    Beans
    1,661

    Re: How to harvest files from several directories - CLI

    Quote Originally Posted by Vaphell View Post
    and what if the database that locate uses is not up to date? find doesn't care about it.
    you can make a tempdb, here's some examples http://ubuntuforums.org/showthread.php?t=2109455 (either of the cleanFilenames scripts)
    you could easily alias the updatedb command to feed it a set of folders

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •