Find the answer to your Linux question:
Results 1 to 4 of 4
Hello all, I am having a problem and I really hope someone in here can assist me. I want to tell my script to go into X file, then into ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    1

    bash scripting

    Hello all,

    I am having a problem and I really hope someone in here can assist me.
    I want to tell my script to go into X file, then into sub directory 1, and into the sub-sub directory and run the bash script.
    I am not good in programming and this may be simple to many but it is really bothering me, and I have 480 of files to run that script on...So can anyone one of you please help.

    Best
    Spinoz

  2. #2
    Just Joined!
    Join Date
    Sep 2009
    Posts
    58
    I know nothing about bash scripting but I found an Advanced Bash Scripting Guide at a site. I cannot unfortunately post this URL since I have less than 15 posts.

    Maybe if you google the Guide you may find it. It may be advanced but it starts with very basic stuff. Could be a good idea to build up a solid bash knowledge.

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    58
    Aitchteeteepee Colon Slashslash tldpDOTorg Slash abs Slash aitchtee em el Slash.

    Cut out the bumpff and you may getit.

  4. #4
    Just Joined!
    Join Date
    Aug 2006
    Posts
    25
    This may help u:

    #!/bin/bash
    cat <your Xfile>
    cd <your directory>
    for file in $(ls -lR); do
    echo $file
    <you can access all the directories/files>
    done

    Send us the detailed info... on what exactly ur script want to do...

Posting Permissions

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