Dear All-
My requirement is as below-
Header file
$ cat HEADER.txt
RequestId:
RequestDate:
Data file
$ cat DATAVAL.txt
1001|2009-03-01
I need to send the combined data below as email body [header+data] via mailx command
------------------
RequestId:1001
RequestDate:2009-03-01
I would like to achieve this using unix command alone and without usage of any temporary files to be created..
I tried something like below-
CMD1='cat CPG_HEADER.txt'
CMD2='tr -s "|" "\n" <CPG_VAL.txt'
e1=eval $CMD1
e2=eval $CMD2
Was trying to combine the above 2 evaluated command using paste command and then send via mailx, but this approach isn't working
Guys, please advice on this topic
Regards,
Suresh