net
Search this site
Home
>
unix/linux
>
bash
>
Use lines in a file for variables
print out each line of a file called file.txt
#!/bin/bash
file
="file.txt"
while read
line
; do
printf "
$line
\n"
done <
$file
Comments