Operating System - HP-UX
1748078 Members
5319 Online
108758 Solutions
New Discussion юеВ

Re: concatenation of file data

 
SOLVED
Go to solution
PK_1975
Frequent Advisor

concatenation of file data

Hi

Could you please advise me how to concatenate the data

actually I developed email notification, in the email subject I want to use the data from file

I have created a file abc.txt
data in abc.txt is "Hello"

I want to use this data in the email subject.

Could you please tell me how to use

Thanks


2 REPLIES 2
Peter Nikitka
Honored Contributor
Solution

Re: concatenation of file data

Hi,

I suggest
echo 'My mail text' | mailx -s "$(
mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Steven E. Protter
Exalted Contributor

Re: concatenation of file data

Shalom,

http://www.hpux.ws/?p=7

Its a little over engineered but it does everything you want and then some.

Good template.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com