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
/
dd
/
dd_read.sh
blob
208b86f4e54b1bb0f6ffb5d46951016e411b537d
1
(
echo -n
"asd"
;
echo -n
"#"
)
| \
2
while
A
=
`dd of=/dev/stdout bs=1 count=1 2> /dev/null`
;
do
3
#while A=`dd of=/dev/stdout bs=1 count=1 status=none 2> /dev/null`; do
4
[
"
$A
"
=
"#"
] &&
break
5
echo -n
"
$A
"
6
done
7
echo
8
9
IFS
=
$
'#'
10
A
=
"123"
11
A
=
`echo "
$A
" | sed 's/./&#/g'`
12
echo
"
$A
"
13
for
i
in
$A
;
do
14
echo
"
$i
"
15
done