[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: bash question
- From: Dario Lesca <d lesca solinos it>
- To: For users of Fedora <fedora-list redhat com>
- Subject: Re: bash question
- 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 solinos it>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]