Microsoft
Software
Hardware
Network
Question : I want to clean up an awk command
I use the following commands to replace one string with another-
awk '{sub(/SELECT/,"SEL");prin
t}'
I also use it a second time for differences with lower case letters
awk '{sub(/Select/,"SEL");prin
t}'
And a third time
awk '{sub(/select/,"SEL");prin
t}'
Not exactly neat and tidy...
Is there a way to make it ignore case on the search string? Or can I use something along the lines of "SELECT or Select or select" in the search string?
Thanks!
Answer : I want to clean up an awk command
awk '{sub(/[Ss](elect|ELECT)/,
"SEL");pri
nt}'
Random Solutions
sql server 2005: trc files
Windows 2003 DHCP server reporting status "Not connected"
Movieclip Radio/check Buttons
Exchange Server 2007 Installation
Best WordPress Solution for One Blog Multiple Authors?
Awk - printing fixed width lines
Remove English (United States) from Word 2007
Blue Screen of Death -- Computer Barely Boots
The computer has rebooted from a bugcheck. The bugcheck was: 0x0000007f (0x00000008, 0x80042000, 0x00000000, 0x00000000)
Batch file to add and remove ; from a text.ini file