Commit d2f40f50 authored by Roshan Rabinarayan's avatar Roshan Rabinarayan

modified q3 for mawk

parent 5768960f
sed 's/\([^ ]\) /\1 \n /g' $1 | awk '/\s*[A-Za-z]+-[0-9]{3}-[0-9]{8}\s*$/' | awk 'NR==FNR{a[$1]=$2", "$3} NR!=FNR{print $1" "$2"-"$3" "a[$2]}' FS=" ?\t+" STD_Codes_list FS="-" - | awk '!/00000000/' -
\ No newline at end of file
sed 's/\([^ ]\) /\1 \n /g' $1 | awk '/ *[a-zA-Z]+-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] *$/' | awk 'NR==FNR{a[$1]=$2", "$3} NR!=FNR{print $1" "$2"-"$3" "a[$2]}' FS=" ?\t+" STD_Codes_list FS="-" - | awk '!/00000000/' -
# sed 's/\([^ ]\) /\1 \n /g' testcase/input3 | awk '/ *[a-zA-Z]+-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] *$/'
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment