MiamiGenome has asked for the wisdom of the Perl Monks concerning the following question:
I have a little scripting task which I kindly request your advice.
I have a series of files : a1.txt, a2.txt, ... a10000.txt
Each file is straight text, no carriage returns, no spaces, etc.
I would like to create a script to add
to the beginning of each file, and a newline to the end of each file.>filename [newline]
For example,
filename: a36.txt
initial filecontents :
after script filecontents :AATGACGTACGTAGTCGTAGCGT
I do not yet have enough experience with scripts (awk, sed, perl) to make this easily, but I'm sure it should be.>a36.txt AATGACGTACGTAGTCGTAGCGT [newline]
Thank you very much !
update (broquaint): added formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: very basic, just beginning
by TomDLux (Vicar) on Aug 27, 2003 at 16:33 UTC | |
|
Re: very basic, just beginning
by fletcher_the_dog (Friar) on Aug 27, 2003 at 17:31 UTC | |
by jmanning2k (Pilgrim) on Aug 27, 2003 at 18:17 UTC | |
by fletcher_the_dog (Friar) on Aug 27, 2003 at 18:25 UTC | |
by jmanning2k (Pilgrim) on Aug 27, 2003 at 18:35 UTC | |
|
Re: very basic, just beginning
by CombatSquirrel (Hermit) on Aug 27, 2003 at 16:24 UTC | |
|
Re: very basic, just beginning
by Anonymous Monk on Aug 27, 2003 at 16:37 UTC | |
by jmanning2k (Pilgrim) on Aug 27, 2003 at 18:32 UTC | |
by jmanning2k (Pilgrim) on Aug 27, 2003 at 18:44 UTC | |
|
Re: very basic, just beginning
by kesterkester (Hermit) on Aug 27, 2003 at 16:32 UTC | |
|
Re: very basic, just beginning
by pzbagel (Chaplain) on Aug 27, 2003 at 17:21 UTC | |
by jmanning2k (Pilgrim) on Aug 27, 2003 at 18:08 UTC |