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
How can I sync up two web servers using Windows Server 2008 or thus Windows Server 2008 has this function?
Win RAR
Opening an Access form with allowadditions property set to false and no records found
Forefront TMG Malware and NIS inspection updates aren't working.
Creation of RAID device fails
Can I capture mic data?
A tiff file that works well with XP but not windows 7 "paint". Can some one give me some ideas?
basic question about graphs and gradients
Visual Basic ListView / SQL
How to use table variable for input parameter