HF RL Explorer

Task: Check if a Variable Exists in a List in Bash

Task: Check if a Variable Exists in a List in Bash: a task in Terminal-Lego-15k (Harbor dataset). Create a Bash script that checks whether a given input value exists in a predefined list of valid values. The solution must correctly handle exact matches only - for example, if the list is "11 22 33"…

The task

Create a Bash script that checks whether a given input value exists in a predefined list of valid values. The solution must correctly handle exact matches only - for example, if the list is `"11 22 33"`, the value `"1"` should NOT be considered a match, while `"11"` should be a valid match.

Part of PrimeIntellect/Terminal-Lego-15k.