Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sed scripting - help needed

Status
Not open for further replies.

sab1234

Programmer
Sep 29, 2003
11
0
0
US
Hi,

I want to change one line in a program using sed script. For instance I want to change the line:

svc_sendreply(transp, xdr_void,(char *)NULL);

to

svc_sendreply(transp, (xdrproc_t)xdr_void,(char *)NULL);

in a program. How do I specify this in a sed script.

Thanks,
Anand.

 
echo 'svc_sendreply(transp, xdr_void,(char *)NULL);' | sed -e 's/xdr_void,/(xdrproc_t)&/g'

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top