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
Post a Comment