in reply to Re^2: Access and modify specific element of tab delimited .txt file
in thread Access and modify specific element of tab delimited .txt file
Is there a way for it to simply check for any string (non-delimiter character) at all?
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 -F\t -plae"$.== 1 and $F[0] eq '' and $_ = 'ID' . $_" jun +k.dat 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
|
|---|