update repository
[cmdllinux.git] / bash_n_examples / bash / dd / dd_read.sh
blob208b86f4e54b1bb0f6ffb5d46951016e411b537d
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
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