#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2009
    Posts
    4
    Rep Power
    0

    Bash shell scripting question


    I have a script which is doing quite deep inspection on a file and from time to time I pull out a variable and return it - but I want to use the return data to called mkdir to create a series of directories based on the output of the script. How do I pass output from a script to mkdir. The script is running cat, egrep, awk and sed commands to pull this data out.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2008
    Posts
    96
    Rep Power
    141
    I'm not entirely sure what you're describing here.. but if you are assigning data to variables in your script.. you should be able to place mkdir in the script and use a variable as arguements?

    mkdir $SOME_VAR

    Perhaps an example of your script would help...

IMN logo majestic logo threadwatch logo seochat tools logo