function regex { gawk 'match($0,/'"$1"'/,arr){print ((part="'$2'")=="") ? $0 : arr[part]}'; }
 

Leave a Reply

*