Bash Script Variables Handling
Hello all.
I have the following script: Code:
#!/bin/bash Also, i wish to read the contents of a simple text file and assign that content to yet another variable that will also be used in this context. Any help will be greatly appreciated. Panos |
The pipe symbol is |
> is a redirection operator; as used in your script it should have created a file called sendmail with what you wanted to send to the sendmail command. $all contains linends so you need to double quote it or bash will turn the linends into single spaces. |
Quote:
echo -e $all | ... that solved this particular problem. Thank you for helping out. :) |
All times are GMT -5. The time now is 09:06 AM. |