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
GPO Not redirecting "My Documents" folder to new server.
Parsing String Using Functions and Regular Expressions
matplotlib: install and "fatal: relocation error"
Automatic Typing. Bug? Virus?
Cannot access remote pc, because wrong username or password is saved
Looking for High-Volume SMTP Hosting Provider for Non-Commercial Email.
Implementing a Hit Counter on Web Page
google search method
Ports that need to be opened for IMAP clients to access Exchange 2007 through firewall.
Excel Julian Date