Mailing script

Hi,

I have a file lets say FILE1.

FILE1
------
name,age
charlie,25
harry,29
david,32

Pls help me writing a mailing script.... which will mail the content of file in the body of the mail & it will look something like below in two columns.

name age
charlie 25
harry 29
david 32

Thanks... :slight_smile:

Well, you could just translate all commas into spaces:

cat FILE1 | tr ',' ' ' |mail someone@somewhere

But maybe what you want is the column command:

column -t -s, FILE1 | mail someone@somewhere