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
Outlook won't send web page within email message body
Exchange share individual's calendar
photometric lights in 3dsmax 7 - can't render on amd
"NOT LIKE" condition in Crystal Reports
How do I schedule an imported SQL 2000 DTS in SQL 2005?
DB2 Connection Interrupted
Problems installing SunOne WebServer 6.1 SP2
IIS FTP and Anonymous Access
Anti-aliasing
How to parse the output of a command in a Bash script