Ahhh ok brilliant. One more question.. why does this only print one column instead of the specified array range?I'm sure I'm doing something stupid but I can't find a good website or text with detailed stuff on specific command line perl
perl -lane '$,="\t";print $F[0..6]' file.txt Thanks so much!UPDATE Sorry, I got it, you just need to change the $ to a @ in front of F. Apologies
In reply to Re^2: Editing just one column in a file
by ZWcarp
in thread Editing just one column in a file
by ZWcarp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |