Re: any equivalent of "seq" command to generate ascii string sequence

Elvin Tan <[email protected]>
Newsgroups gmane.user-groups.linux.singapore
Message-ID <[email protected]>
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.