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
Setting Compatibility Mode in IE8 using JavaScript
SQLServer Query, Pivot and/or Cross tab or whatever
Question about Exchange 2010 mailbox move.
Keep geting lots of "The system failed to flush data to the transaction log. Corruption may occur" errors in Windows 7 Pro
Screen lock/unlock
iPhone sounds on a web site ?
How do I modify textboxes/labels in an asp:repeater footertemplate through javascript (client side)
Getfile in ASP
Please wait while Windows configures Crystal Reports Release 2
HP Web JetAdmin uses lots of RAM