I need help for bash scripting I have a folder with log files(number may vary) I have to test those files for content and if one or more of those files has content, I want to send the content by mail (I use mailx) being formatted like so:
The content of "filename" is: ------content--------- The content of "filename2" is: ------content--------- There was no content in "filename3".
Any practical way using bash to do this?
Thanks for your help.