repo.or.cz
/
cmdllinux.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
update repository
[cmdllinux.git]
/
bash_n_examples
/
bash
/
read
/
bash_read_whole_line.sh
blob
d7513f0ce08ace9c7f8c8ae049f5ebf39041d0eb
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