Find the answer to your Linux question:
Results 1 to 2 of 2
hi, I am using Mandriva and i would like to make a script with shell. I try to do a file synchronizer and I need to go recursively on a ...
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    2

    file synchronizer shell

    hi,

    I am using Mandriva and i would like to make a script with shell.

    I try to do a file synchronizer and I need to go recursively on a directory containing several files and subdirectories etc. .. and retrieve information on the modification date, names ...

    My first question: I have some problems to create a recursive function to browse the given directory tree .Someone could help me?

    the second question: how can I recover directories located on another pc connected to my pc.

    Again thank you in advance.

  2. #2
    Linux Engineer khafa's Avatar
    Join Date
    Apr 2008
    Location
    Tokyo, Japan
    Posts
    858
    hi,

    - first q
    you can use the find command to go recursively through a given tree.
    for example the following will display with details every file or directory under /
    Code:
    find / -exec ls -l {} \;
    -second q
    have a look at rsync
    Linux and me it's a love story

Posting Permissions

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