Hi, all
I have a file a.txt contains lines like below:
mez:Mtc_0001 glycosyltransferase
mez:Mtc_0002 feoA; Iron dependent transcriptional regulator; K03709 DtxR family transcriptional regulator, Mn-dep
mez:Mtc_0003 feoB; ferrous iron transporter FeoB; K04759 ferrous iron transport protein B
(there is multi-space between mtc_000x and things following)
I want to use Perl to do following things, but I just begin to learn Perl,
1) delete all mez in all lines at the begining;
2) foreach $line (@line) {separate "\t" but not multi-space or ";"}
3) print and store the results in a new b.txt file and keep the a.txt file unchanged.
could you give some suggestions on this.
thanks!
why perl ? one
sed
would ok.thanks, I am also trying to learn perl but could not figure things out now. maybe it would be figured out after I go through regular expression chapter.