Replace pipe read with line count loop, fix useless return in subshell.
Attach a file by drag & drop or click to upload