I want to check that particular string "20040213_25049.XXXX" containing XXXX or not on other hand when do I write string like "20040213_25049 .XXXX" then it is matched but I want to match with "20040213_25049.XXXX"
echo "20040213_25049 .XXXX" | awk '{match($2,/XXXX/,a)}END{print a[0]}' (It is working)
echo "20040213_25049.XXXX" | awk '{match($2,/XXXX/,a)}END{print a[0]}' (It is not working)
I didn't get any output from above line.