How to verify if the name of a .xml file name ended with .any-string? e.g. .previous or .backup or bck12 etc ...
I need to print the XML file name except for XML files that end with .any-string or have anything after the .xml
How to verify this with grep or awk or sed or perl or any other idea? Something like
file=machine_configuration.xml file=machine_configuration.xml.previos file=machine_configuration.xml.backup echo $file | ..... Examples:
machine_configuration.xml: yesmachine_configuration.xml.OLD: no- `machine_configuration.xml-HOLD: no
machine_configuration.xml10: nomachine_configuration.xml@hold: nomachine_configuration.xml_need_to_verifi_this: no