|
Re: Replacing a pattern in one file by reading a string from anotherfile: msg#00016editors.sed.user
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> |
|---|---|---|
| Previous by Date: | Simple Conditional execution in a script: 00016, crmuser1998 |
|---|---|
| Next by Date: | sed users on frappr: 00016, Sven Guckes |
| Previous by Thread: | Re: Replacing a pattern in one file by reading a string from another filei: 00016, Tim Chase |
| Next by Thread: | Re: Replacing a pattern in one file by reading a string from anotherfile: 00016, hq00e |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |