havent worked with liux in a while, especially sed function. Wondering if someone could help me with the following:
in a servlet, i want to add the following:
@web.servlet name = "xxx" display-name = "xxx" @web.servlet-mapping url-patern = "/xxx.xxx/*"
code in the servlet looks:
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
/**
*Description of the classes
*
*@author
*@created
*/
After adding, the code should look:
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
/**
*Description of the classes
*@web.servlet name = "xxx"
*display-name = "xxx"
*@web.servlet-mapping url-patern = "/xxx.xxx/*"
*@author
*@created
*/
i know i should look for imports followed by /**, go the the next line and add the code.
again, it has been a while since i have worked with linux, escpecially sed function.
help will bw geatly appreciated.
thank u