[wellylug] a bit of data bashing
Christian Gagneraud
chgans at gna.org
Tue Mar 24 09:42:32 NZDT 2015
On 24/03/15 09:07, edouard chalaron wrote:
> Hello all
>
> Might be trivial, but as usual it's when you have your glasses on your
> nose that you can't find them. :-/
>
> Here we go.
> I am a trying to generate a relatively simple text file in which I would
> find a list such as
>
> file00000X.whatever
> .
> .
> .
> .
> file00000Y.whatever
>
> Knowing values of X and Y
>
> A loop from X to Y seems the way to go, but then I have troubles with
> SED / awk
'seq' is what you're after, which is more portable than the '{0..10}'
bashism. `seq $X $Y` will gives you a sequence from $X to $Y.
Chris
>
> Any hint ?
> Many thanks
> Ed.
>
>
>
More information about the wellylug
mailing list