ohh.. {a..z} is new to me (in bash, i use it a lot in perl)

so

for i in {0..255}; do printf "%02x\n" $i; done

works too ! =)

Elvin
-

On Wed, May 19, 2010 at 5:49 PM, Patrick Haller <[email protected]> wrote:

> On Wed, May 19, 2010 at 11:36:33AM +0200, Martin B?hr wrote:
> >
> > now, how would one create a hex sequence: 00 .. ff?
>
> for i in $(seq 0 255) ; do printf "%02x\n" $i; done
>
>
> Patrick
>
> _______________________________________________
> LUGS Mailing list - [email protected]
> List FAQ: http://wiki.lugs.org.sg/LugsMailingListFaq
> Info page: http://www.lugs.org.sg/mailman/listinfo/slugnet
> To unsubscribe send an empty email to: [email protected]
>
_______________________________________________
LUGS Mailing list - [email protected]
List FAQ: http://wiki.lugs.org.sg/LugsMailingListFaq
Info page: http://www.lugs.org.sg/mailman/listinfo/slugnet
To unsubscribe send an empty email to: [email protected]

Reply via email to