I don't understand how to write unix shell commands in python. I have this txt file were I want to delete duplicates. It looks something like this:
I think I'm suppose to import os and then I want to use the following command line (which works in the shell but I don't know how to start when dealing with python):
sort f1 | uniq > f2
How do I as a start open the file in os system?