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
pattern match in shell script
Outlook Reminder Pop-Ups in Citrix
SCX-4300 with terminal server
How do you save a .pst file in Outlook 2007 Beta 2?
Scheduled task does run if it requires admin elevation
hyperlinks in email canceled due to restrictions in effect on this computer.
Xp fails, other network printers print
OWA 2007 - single user only able to get light client - definitely light and not low-vision
Vista Backup Solution
invalid url on google search through IE7