sed - awk search command for case-insensitivy -


i have following awk commmand..i want make "issue-fixed" case-insensitive,can provide inputs on how can done,i looked @ http://www.unix.com/shell-programming-scripting/20196-case-insensitive-serach-awk.html doesnt seem work me

awk '/link|issue-fixed:/{print $2}' foo.txt | sed 'n; y/\n/ /' 

this might work you:

awk '/link|[ii][ss][ss][uu][ee]-[ff][ii][xx][ee][dd]:/{print $2}' foo.txt | sed 'n; y/\n/ /' 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -