bash while string is not empty
bash, linux, string
Solution
It is not ending because the `sed` expression is not correct. It expects minimum 15 characters and does not work for anything less than 15 chars. Try this:
RAW=$(echo $RAW| sed -r 's/^.{0,15}//')
Problem
I'm trying to set up a script that parses a string. My loop is currently ``` while [ -n "$RAW" ]; do // do some processing here RAW=$(echo $RAW| sed -r 's/^.{15}//') done ``` However, the script never seems to end