Is there a way to print something into this first element?
I suspect you're after something more complex, but on the face of it, this seems to answer that question:
C:\test>type junk.dat A B C D E A 1 1 1 1 1 B 1 1 1 1 1 C 1 1 1 1 1 D 1 1 1 1 1 E 1 1 1 1 1 C:\test>perl -plae" $.== 1 and $F[0] eq 'A' and $_ = 'ID' . $_" junk.d +at ID A B C D E A 1 1 1 1 1 B 1 1 1 1 1 C 1 1 1 1 1 D 1 1 1 1 1 E 1 1 1 1 1
In reply to Re: Access and modify specific element of tab delimited .txt file
by BrowserUk
in thread Access and modify specific element of tab delimited .txt file
by K_Edw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |