pigouinakia sto piato:p
Vasilis Vasaitis
vvas at hal.csd.auth.gr
Sun May 7 17:58:53 EEST 2000
On Sat, May 06, 2000 at 04:45:07PM +0300, Giorgos Keramidas wrote:
>
> > enas filos mou , eftiaje ayto to ascii . 8a i8ela omos na to emfanizo
> > stin o8oni, siga siga ana grami.
> > oxi diladi me ena jero cat arxeio|more h estw me thn entoli : less
> > arxeio.
>
> Mporeis na to kaneis eite grafontas ena C programma pou diabazei kai
> tuponei tous xarakthres me ena mikro usleep() anamesa apo kathe xarakthra,
> eite.. ki edo einai h plaka, me ena shell script se Bourne shell.
>
> Sto bourne shell, OLES oi olokliromenes entoles mporoun na paroun eisodo me
> redirection apo ena arxeio, opote to prwto pou skefthka (kai dokimasa me
> epituxia) einai ena mikro script pou periexei ta ejhs:
>
> #!/bin/sh
> cat "$@" | while true; do
> unset line
> read line
> echo $line
> sleep 1
> done
>
> Bebaia, auto einai mia rough-proposal-for-an-alpha-version, kai exei ena mikro
> ekpaideutiko bug.. Den katalabainei to end-of-file! Alla fantazomai tha to
> breis auto, xoris polu kopo }:-)
Για μια ολοκληρωμένη λύση, δοκίμασε κάτι τέτοιο:
#!/bin/sh
IFS=""
cat "$@" | while read line
do
echo "$line"
sleep 1
done
--
\ /_. _o|o _ \ /_. _ _.o_|_o _
\/(_|_>|||_> \/(_|_>(_|| |_|_>
__
_. _ / \|_ _.| _ _ _| _. _|_|_ _ ._
\/\/(_|_>| (|/| |(_||o(__>(_|o(_||_||_| |o(_||
\__ _|
--
linux-greek-users mailing list -- http://lists.hellug.gr
More information about the Linux-greek-users
mailing list