RosettaCodeData/Task/File-input-output/UNIX-Shell/file-input-output-1.sh

5 lines
86 B
Bash

#!/bin/sh
while IFS= read -r a; do
printf '%s\n' "$a"
done <input.txt >output.txt