Bash String help
Hi All,
I'm not very good with bash so i need some help. Is it possible to execute an application in bash that returns a string. And is it possible to capture the returned string in bash? For example Code:
#!/bin/bash thanks |
There is no explicit way to return a string, but the next best thing is using echo at the end of a function/script and then capturing the output of the function/script in a variable:
yourFunction.sh Code:
#!/bin/bash Code:
#!/bin/bash |
All times are GMT -5. The time now is 08:11 AM. |