Task: Count the Number of Lines in a Bash Variable
Task: Count the Number of Lines in a Bash Variable: a task in Terminal-Lego-15k (Harbor dataset). In Bash scripting, you need to correctly count the number of lines stored in a variable. A common pitfall is that using echo $var wc -l always returns 1 even when the variable contains multiple lines…
Part of PrimeIntellect/Terminal-Lego-15k.