inserting program output into a variable
Hello,
I know that with C Shell i can do this: set var1=`some_command with_arguments` and get in var1 the output of that command with these arguments... is there a way to achieve this in Dash and Bash? |
Skip the "set " part?
|
heh, sorry...
I had to use `./executable_name arguments` instead of `executable_name arguments` now its fine, silly me... |
You can use either of these:
Code:
variablename=`some command` |
All times are GMT -5. The time now is 02:12 PM. |