Microsoft
Software
Hardware
Network
Question : Search and replace script
Hello,
I want to replace all the below given lines in a file to this "%susysprod ALL=(ALL) /bin/su -, /bin/su"
%susysprod, vrao ALL=(ALL) /bin/su -, /bin/su
%suqatest, %susysprod ALL=(ALL) /bin/su -, /bin/su
dapani, %susysprod ALL=(ALL) /bin/su -, /bin/su
%susysprod, manian, urapak, rtlasetti, sadqb, sysadm ALL=(ALL) /bin/su -, /bin/su
%susysprod, snara ALL=(ALL) /bin/su -, /bin/su
Output should be:
%susysprod ALL=(ALL) /bin/su -, /bin/su
%susysprod ALL=(ALL) /bin/su -, /bin/su
%susysprod ALL=(ALL) /bin/su -, /bin/su
%susysprod ALL=(ALL) /bin/su -, /bin/su
%susysprod ALL=(ALL) /bin/su -, /bin/su
Please let me know. Thanks!
Answer : Search and replace script
sed 's#.*%susysprod.*ALL=(ALL)
*/bin/su -, /bin/su#%susysprod ALL=(ALL) /bin/su -, /bin/su#'
Random Solutions
Access user control function from master page
Am I elegible for a free upgrade to Outlook 2010 with this?
SCCM Software Report By Major Revision
How to change properties.settings after deployment of windows application
Using jqzoom (jquery)
IE is blocking my download of Adobe Flash, I'm getting install error.
How do I resolve this error "javax.xml.ws.WebServiceEx
ception .... Place the resource correctly in the classpath.?
Grab last two lab results
SharePoint 3.0 Central Administration not loading
Default parameter to max date