extracting columns with awk
hi
why does this only use column 3? awk '{print $3 $6 $7 >> "area.plt" }' mol.are thnx. g. |
How are we supposed to know what .plt and .are files are.
Also, the >> "area.plt" part should be outside the awk command. Otherwise we can't tell you what the output would look like without a sample of the input. |
Quote:
But of course, w/o knowing the input we can't say much. |
Thanks Reuti. I didn't know that. It does look strange, and I don't see why you would unless you are running an actual awk script.
|
Quote:
@gav251: please follow the advice in the previous posts and show us the content (or just a sample) of the input file. Don't forget to embed it in CODE tags to preserve spacing and tabs (since they might be important to solve the puzzle). To use CODE tags, either put [CODE] and [/CODE] around the text or switch to advanced mode and press the # button. |
The .plt file is a new file, > would be ok. .mol file is a large file containing mathematical data about a proteins geometry. I didn't post it since the data is irrelevant. I just need to redirect columns 3, 6 and 7. Sorry for the ambiguity.
g. |
Quote:
|
Quote:
Code:
head -3 file.mol | od -c |
All times are GMT -5. The time now is 03:31 AM. |