RosettaCodeData/Task/Read-entire-file/UNIX-Shell/read-entire-file-1.sh
Ingy döt Net b83f433714 tasks a-s
2013-04-10 23:57:08 -07:00

2 lines
87 B
Bash

f=`cat foo.txt` # f will contain the entire contents of the file
printf '%s\n' "$f"