rt $foo="this is a test" echo ${foo%%t*is}
NOTE
While the # and % identifiers may not seem obvious, the... /etc/passwd | ( \
IFS=: ; while read lognam pw id gp fname home sh; \
... "tab," and "newline.
After that we see a typical while read loop -- where we read values from each line ... cript with a return code of one.
Oddly enough -- while it is easy to redirect the standard error of proc