Im using uuencode in unix shell scripting but im unable to get the Column header included in the extraction in email.
file1.csv Col1 col2
- Meghan
-
Sarah
Command I have used: (Cat emailbody.txt; uuencode file1.csv file1.csv) | mailx -s "subject" [email protected]
Attachment in email.
- Meghan
- Sarah
I need the Col1 and Col2 column header as well
The solution is to add header to the SQL output is i.e., add
SET HEADER ON,SET PAGESIZE 500000to your.sqlfile. you can setpagesizeto the max number based on your output.