$ ./guess_the_languageProgramming Languages
Programming Languages · hard · #519

Which programming language is this?

while IFS= read -r line; do
  printf '%s
' "$line"
done < input.txt

Answer: Bash

while IFS= read -r with a redirected loop is the safe shell way to read lines.
Play Programming Languages ▸