[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: utility 'seq'
From: |
Bob Proulx |
Subject: |
Re: utility 'seq' |
Date: |
Fri, 22 Feb 2002 23:10:25 -0700 |
> I played with seq and found it quit usefull.
> Can I file two enhancement requests ?
Suggestions are always welcome.
> (1) My version speaks German and therefore (I guess) there is no decimal
> point in reals but a decimal komma .
> This is good and correct if the numbers are used in a german text.
> If the numbers will be used for programming (as in my case) this feature is
> troublesome.
Hmm... Perhaps something like this might work around your problem?
Setting environment variables on the same command line does not set
them in the user's environemnt but only sets them in the environment
for that particular command.
LC_ALL=de_DE seq 0 ,2 1
0
0,2
0,4
0,6
0,8
LC_ALL=POSIX seq 0 .2 1
0
0.2
0.4
0.6
0.8
> (2) Also for programming purpose (e.g. generating case labels with vim it
> would be nice to have octal and hex output.
Perhaps you can use the 'printf' command to translate?
for n in $(seq 7 20); do printf "0x%X\n" $n; done
0x7
0x8
0x9
0xA
0xB
0xC
0xD
0xE
0xF
0x10
0x11
0x12
0x13
0x14
Bob
- utility 'seq', Prof. Dr.-Ing. Fritz Mehner, 2002/02/22
- Re: utility 'seq',
Bob Proulx <=