update repository
[cmdllinux.git] / bash_n_examples / bash / read / bash_read_whole_line.sh
blobd7513f0ce08ace9c7f8c8ae049f5ebf39041d0eb
1 set -f
2 IFS=$'\n'
3 cat a | \
4 while read -r line; do
5 LEN="${#line}"
6 echo $LEN
7 echo "\"$line\""
8 done