Re: bash question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux