[wellylug] a bit of data bashing
Christian Arndt
car at itmania.de
Tue Mar 24 09:09:20 NZDT 2015
Hi,
what about
$ for i in {1..10}; do echo file00000$i.whatever >> filname.txt ;done
(where x=1 and y=10)
Regards,
Christian
On 03/24/2015 09:07 AM, 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.
>
>
>
--
Best regards,
http://www.itmania.de/gpg.pub e-mail
http://www.itmania.de/ssh.pub ssh
More information about the wellylug
mailing list