Task: Compare Version Strings in Bash
Task: Compare Version Strings in Bash: a task in Terminal-Lego-15k (Harbor dataset). Create a Bash script that compares two version strings in dot-separated format (e.g., 2.4.5 , 2.8 , 2.4.5.1 ). The script should be able to determine whether the first version is greater than, less than, or equal…
The task
Create a Bash script that compares two version strings in dot-separated format (e.g., `2.4.5`, `2.8`, `2.4.5.1`). The script should be able to determine whether the first version is greater than, less than, or equal to the second version.
Part of PrimeIntellect/Terminal-Lego-15k.