I want to give a string stored in a txt file as an argument to a python code via sys.argv command. This is the code called script.py
import sys
seq = sys.argv[1]
print seq
and this is the string stored in seq.txt: AAABBBCC
Now when I run
python script.py seq.txt
I get
seq.txt
as output. How can I get it to print the string in seq.txt.