i want to edit my jsp page using script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting i want to edit my jsp page using script
# 1  
Old 08-14-2007
i want to edit my jsp page using script

hi
I have one jsp file. i want to edit this jsp page using script.

This jsp page contains ("insert into employee values('raja', 32, ' ');)

i want to add empty column at the end of the line. i.e is that line should be
(insert into employee values('raja', 32, ' ', ' ');)

Last edited by vino; 08-14-2007 at 06:48 AM.. Reason: Disable smilies in text
# 2  
Old 08-14-2007
You can use sed for this.
# 3  
Old 08-14-2007
Code:
>cat a
insert into employee values('raja', 32, ' ');)
>sed "s/);/, ' ');/g" a
insert into employee values('raja', 32, ' ', ' ');)

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

File edit script exceptions how to pass to script

i wrote script for if file exists script do file edit problem with the script get stuck not existing as for exit i mentioned exit 0 , and how to give the exception for script it should add ./script -- add hi ./script --add "hi how are you" now below script with case it is working for... (0 Replies)
Discussion started by: markjohn1
0 Replies

2. Shell Programming and Scripting

script for adding page number before page breaks

Hi, If there is an expert that can help: I have many txt files that are produced from pdftotext that include page breaks the page breaks seem to be unix style hex 0C. I want to add page numbers before each page break as in : Page XXXX Regards antman (9 Replies)
Discussion started by: antman
9 Replies

3. Shell Programming and Scripting

connection of JSP using SSH to access Shell script

Hello, I am not sure if I am posting in the right forum. A website is running on a server with <ip1> in unix. It's written in JSP. I need to add a link on the page, which will on-clicking ask for username and password to enter into another server <ip2> and gets all the files from a... (1 Reply)
Discussion started by: shekhar2010us
1 Replies

4. Programming

Please I need your help about jsp and java

Hello.. is there any way to send a file or a string from jsp website to java program which all I will develope i remember that i can make socket connection between jsp and java but:confused::confused: I dont now how if there any website or booke explain that or if there another way ... (2 Replies)
Discussion started by: vip_a1
2 Replies

5. Shell Programming and Scripting

Need help in a shell script to edit a tablespace creation script.

Hi, CREATE TABLESPACE aps_blob_large01 DATAFILE '/c2r6u13/u03/oradata/qnoldv01/aps_blob_large0101.dbf' SIZE X 270532608 REUSE DEFAULT STORAGE (INITIAL 134217728 NEXT... (2 Replies)
Discussion started by: rparavastu
2 Replies

6. Shell Programming and Scripting

Invoking shell script from html/jsp page

I want to invoke shell script named bubesh.sh when submit button clicked on html/jsp page.I am using an apache server and the html & shell script are in the same working directory.Please help. (2 Replies)
Discussion started by: bubeshj
2 Replies

7. Shell Programming and Scripting

calling unix script from JSP???

Hi all, i have requirement where i need to call a unix script from a JSP code. my script should list all the csv files from a directory and then should upload the file names to an oracle table (using sqlloader). i tried using getRuntime function in JAVA to call my script and was successfully... (1 Reply)
Discussion started by: Bhups
1 Replies

8. UNIX for Dummies Questions & Answers

JSP on an HP UX-11

We have an HP UX-11 server running Unix and we wish to run Java Server Pages on this system. Can anyone see a reason why these pages will not work under this environment. Thanks for you help. Matthew (2 Replies)
Discussion started by: MLarra51
2 Replies

9. Shell Programming and Scripting

user creation using shell script for JSP

hello friends, I have problem. We want to create user from jsp(browser based) on our linux server. How we can do that ? or How do we create a user with shell programming by taking arguments and checking with the existing users and if the user exist it should display the message the user exists... (1 Reply)
Discussion started by: jarkvarma
1 Replies
Login or Register to Ask a Question