printf 'silent data loss' | while read l; do printf '%s\n' "$l"; done
though at the point I need to write while IFS= read -r line || [ -n "$line" ]; do
printf '%s\n' "$line"
done
I'll use a different language. printf 'silent data loss' | while read l; do printf '%s\n' "$l"; done
though at the point I need to write while IFS= read -r line || [ -n "$line" ]; do
printf '%s\n' "$line"
done
I'll use a different language.No comments yet.