Re: bash question
- From: Dario Lesca <d.lesca@xxxxxxxxxx>
- Date: Wed, 31 Oct 2007 15:07:32 +0100
Il giorno mer, 31/10/2007 alle 14.58 +0100, Sjoerd Mullender ha scritto:
Or:
#!/bin/bash
printf "a a a\nb b b\nc c c\n" | {
i=0
while read x
do
i=$[i+1]
echo "$x: ($i)"
done
echo $i
}
Great!
--
Dario Lesca <d.lesca@xxxxxxxxxx>
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
- References:
- bash question
- From: Dario Lesca
- RE: bash question
- From: Miner, Jonathan W (CSC) (US SSA)
- Re: bash question
- From: Sjoerd Mullender
- bash question
- Prev by Date: Re: bash question
- Next by Date: Re: To remain in summer time.
- Previous by thread: Re: bash question
- Next by thread: Re: bash question
- Index(es):