Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I want apply a script to all files in a tree of directories. How must I do? Tks...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Location
    Italy
    Posts
    11

    I want apply a script to all files of a directories' tree.

    Hi,
    I want apply a script to all files in a tree of directories.
    How must I do?

    Tks

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    With the find command you can search recursively through the underlying directories:
    Code:
    find <dir> -name <files> -exec <command> {} \;
    Check the options in the manpage of find or Google for examples.

    Regards

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Location
    Italy
    Posts
    11
    Ok, I will try. Thank you

Posting Permissions

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