Shell basics
to scape xml from logs
i had grep "something" filename | cut | sed. this would work fine on te shell but when i put this into the script it just wont work. after googling i came accross:
http://stackoverflow.com/questions/4651437/how-to-set-a-bash-variable-equal-to-the-output-from-a-command
it turn out that i need variable=` all the commands`. note no space in variable and =
finally echo $variable >> out.txt
to scape xml from logs
i had grep "something" filename | cut | sed. this would work fine on te shell but when i put this into the script it just wont work. after googling i came accross:
http://stackoverflow.com/questions/4651437/how-to-set-a-bash-variable-equal-to-the-output-from-a-command
it turn out that i need variable=` all the commands`. note no space in variable and =
finally echo $variable >> out.txt
No comments:
Post a Comment