[wellylug] a bit of data bashing

edouard chalaron e.chalaron at xtra.co.nz
Tue Mar 24 09:52:52 NZDT 2015


HI Grant

Not too familiar with the seq command. However the %06g is important.
Can you show me how to incorporate this seq command in a script ? A bit
lost on this one I must confess
Many thanks
E


On Tue, 2015-03-24 at 09:33 +1300, Grant McLean wrote:

> How about ...
> 
>   seq -f 'file%06g.whatever' $X $Y > simple-text-file
> 
> Cheers
> Grant
> 
> 
> On Tue, 2015-03-24 at 09:07 +1300, 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
> > 
> > Any hint ?
> > Many thanks
> > Ed.
> 
> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20150324/702a8d87/attachment-0001.html>


More information about the wellylug mailing list