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 reporting services date format
Bluescreens on shutdown with XP SP1
How do I check if our IP is on the VERIZON.NET blacklist?
Storage Group Copy Status
Enabling "User must change password at first login"
How can I grep, parse lines, and return count by certain fields?
changing password
Exchange server cannot be contacted. When running Best Practices Analyzer
IE does not open to set home page even after applying regedit and more suggestion?
Using Excel's Password protection to protect a worksheet & workbook