Find the answer to your Linux question:
Results 1 to 2 of 2
Dear All, I am new to Unix and i need a small Help from you Guys..... The current structure of my system is as follows: /Abc/xyz/cpd/std/re/doc Each cpd directory has ...
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    7
    Dear All,

    I am new to Unix and i need a small Help from you Guys.....

    The current structure of my system is as follows:
    /Abc/xyz/cpd/std/re/doc

    Each cpd directory has n number of std's. Each std has n number of re's.
    My requirement is to write a UNIX script that would search whether doc directory is present under all re's directories.
    If it is not, i need to write it into a temp file with the full path /Abc/xyz/cpd/std/re/doc.

    We are using : /bash

    Can anyone of you help me in writing a UNIX script for the above mentioned requirement ASAP.

    Looking forward to your response.

    Thank You.

    Regards,
    Rajani-kanth.

    it's not an home work.

    can any one help me........
    Last edited by devils casper; 01-07-2008 at 02:48 PM. Reason: posts merged.

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    can any one help me........
    Yes. See this reply. In addition, doing this at the command line might prove helpful:
    Code:
    man find
    Also, google this:
    Code:
    bash tutorial
    I am hoping others might join in with their favorite sources for bash scripting knowledge.
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

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