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
I need to do a report in bash or perl to sum up columns b for each time column a changes
Can't delete items in Outlook 2002 deleted items folder
can chinese version of windows xp be loaded directly over a english version?
What does 'Cannot Create Transaction because Capacity was Exceeded' mean?
Traffic-Power Search Engine Placement - User Feedback?
550 Too Many Invalid Receipients
Lock the sheet...
Only Show Rows that contain specified name
Problem sending to cfl.rr.com domain
Data web programming on a $0 budget