logo       

Re: Replacing a pattern in one file by reading a string from anotherfile: msg#00016

editors.sed.user

Subject: Re: Replacing a pattern in one file by reading a string from anotherfile


Hi ,
I found out another way(though quite lame , i admit) to do this
same thing :-

paste 2 3 | sed 's/:/ /g' | awk '{print $3,":",$2}'
(Here we can always replace the awk part by the sed equivalent)

File 2 contains :

username:SAPextract
password:$$$$$
Monthtoextract: October

and File 3 contains :

RunasUser: $username
RunasPsswd: $password
RunMonth: $Monthtoextract

(Please note that the purpose of this posting is not to better the
solution posted by Tim ; this is just to suggest another alternative.)

regards,
Kaushik



Notice: The information contained in this e-mail message and/or attachments to
it may contain confidential or privileged information. If you are not the
intended recipient, any dissemination, use, review, distribution, printing or
copying of the information contained in this e-mail message and/or attachments
to it are strictly prohibited. If you have received this communication in
error, please notify us by reply e-mail or telephone and immediately and
permanently delete the message and any attachments. Thank you

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~-->
AIDS in India: A "lurking bomb." Click and help stop AIDS now.
http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/dkFolB/TM
--------------------------------------------------------------------~->

--

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/sed-users/

<*> To unsubscribe from this group, send an email to:
sed-users-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/






<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise