Originally Posted by rich123
i have been given a file that includes 4 columns. i need to extract the 4th columns data and then output it into a file. the file i will output it to is a python file and that contains a formula. The formula will take the numbers and then find the average. i need to do all this using a pipeline. any help?
Hmmm ... this wouldn't be homework, would it?
Even if so, getting the fourth column could be achieved with awk, or with egrep, or probably many other ways.
It seems mostly like this is all about the I/O redirection.
Is this homework?
We have rules against giving people answers to homework.