Home » Infrastructure » Unix » Adding Text in Shellscripting which is having XML code
Adding Text in Shellscripting which is having XML code [message #402469] Mon, 11 May 2009 00:10 Go to next message
user71408
Messages: 585
Registered: November 2007
Location: NE
Senior Member
Hi All,

I have written shellscritp with extension ".sql". This file contains XML code.I want to add 1000 character text in this file.But I want to write an Update stateent script for adding the text.XML code contains 3 languages.
If Language='ENGLISH' I want to add English related Text.
IF language='DUTCH' I want to add English related Text.
for this updating I want to write the shell script.
can any please help me to write the shell script for this.

Thank you,
Re: Adding Text in Shellscripting which is having XML code [message #402472 is a reply to message #402469] Mon, 11 May 2009 00:25 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Use vi.

Regards
Michel
Re: Adding Text in Shellscripting which is having XML code [message #402480 is a reply to message #402472] Mon, 11 May 2009 00:57 Go to previous messageGo to next message
user71408
Messages: 585
Registered: November 2007
Location: NE
Senior Member
Michel,

I am requesting to write the Update statement like
in shell script ,If language ='Eng' then it will call the ".sql" file and it should update the text in .sql file the text which we mention in "Update_Script.sh"
(eg: if language='ENG' then the text is like 'Toppers are not born they are made"
If language='Ducth' then 'Als gevolg van de verhuis van uw ')

In .sql file , if language='English' It will updated with the text which was defined in the "Update_Script"(text what we have written in Update_Script"
If language='Ducth' then It will updated with the text which was defined in the "Update_Script"(text what we have written in Update_Script"

Please let me know if u need more information.

Thank you
Re: Adding Text in Shellscripting which is having XML code [message #402481 is a reply to message #402480] Mon, 11 May 2009 00:59 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
How is this an Oracle question?

Regards
Michel
Re: Adding Text in Shellscripting which is having XML code [message #402484 is a reply to message #402481] Mon, 11 May 2009 01:03 Go to previous messageGo to next message
user71408
Messages: 585
Registered: November 2007
Location: NE
Senior Member
I was posted it in UNIX ...
and the thing here we need to write Update statement as well.
am not getting to write the UPDATE statement. There is no column in the table to Insert the text.
please let me know this.

Thank you
Re: Adding Text in Shellscripting which is having XML code [message #402489 is a reply to message #402484] Mon, 11 May 2009 01:32 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
update what from what into what?
Read your posts and answer the questions from them.

Regards
Michel
Re: Adding Text in Shellscripting which is having XML code [message #402494 is a reply to message #402489] Mon, 11 May 2009 02:15 Go to previous message
ThomasG
Messages: 3211
Registered: April 2005
Location: Heilbronn, Germany
Senior Member
This has to be the record for "Mixing up different stuff that has nothing to do with each other whatsoever"

/forum/fa/1620/0/
Previous Topic: Shellscripting or PL/SQL program
Next Topic: Migrating from (oracle9i32-bit on Linux32-bit) to (oracle9i64-bit on Linux64-bit)
Goto Forum:
  


Current Time: Thu Mar 28 20:02:24 CDT 2024