<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
HI Grant<BR>
<BR>
Not too familiar with the seq command. However the %06g is important.<BR>
Can you show me how to incorporate this seq command in a script ? A bit lost on this one I must confess<BR>
Many thanks<BR>
E<BR>
<BR>
<BR>
On Tue, 2015-03-24 at 09:33 +1300, Grant McLean wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
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:
<FONT COLOR="#737373">> Hello all</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> Might be trivial, but as usual it's when you have your glasses on your</FONT>
<FONT COLOR="#737373">> nose that you can't find them. :-/</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> Here we go.</FONT>
<FONT COLOR="#737373">> I am a trying to generate a relatively simple text file in which I would</FONT>
<FONT COLOR="#737373">> find a list such as</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> file00000X.whatever</FONT>
<FONT COLOR="#737373">> .</FONT>
<FONT COLOR="#737373">> .</FONT>
<FONT COLOR="#737373">> .</FONT>
<FONT COLOR="#737373">> .</FONT>
<FONT COLOR="#737373">> file00000Y.whatever</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> Knowing values of X and Y</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> A loop from X to Y seems the way to go, but then I have troubles with</FONT>
<FONT COLOR="#737373">> SED / awk</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> Any hint ?</FONT>
<FONT COLOR="#737373">> Many thanks</FONT>
<FONT COLOR="#737373">> Ed.</FONT>



</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>