Originally Posted by silver18
Yep, it stores the matching line in $check and leaves $check empty if nothing is found.
It's just a way of checking it $image contains a space...
Once you have that line (with spaces) captured in $check ...
You will have to change the IFS (Input Field Separator) to do anything with the stored contents (or to even pass the $check as a function argument or use it in an assignment statement).
Since the "space" character is one of the default input field separators.