Closed DininduSenanayake closed 3 weeks ago
Explanation of the changes:
apptainer exec ... | grep APSIM This command extracts the version number from the output of the Models command executed inside the Apptainer image. It assumes that the output format is "APSIM ".
apptainer exec ... | grep APSIM
-F'[ ©]' sets the field separator to either a space or the © symbol. Otherwise, output comes in the format of version ©
F'[ ©]'
version ©
'{print $2}'
This approach should correctly extract just the version number (e.g., "2024.8.7572.0") without any additional characters.
Explanation of the changes:
apptainer exec ... | grep APSIM
This command extracts the version number from the output of the Models command executed inside the Apptainer image. It assumes that the output format is "APSIM-
F'[ ©]'
sets the field separator to either a space or the © symbol. Otherwise, output comes in the format ofversion ©
'{print $2}'
prints the second field, which should be the version number.This approach should correctly extract just the version number (e.g., "2024.8.7572.0") without any additional characters.