replace loading a file to a list with command line/shell version in python
<p>Hi is there a way to load a file as such, but from command line</p>

<p>so i can type python test.py data.txt</p>

<p>instead of</p>

<pre><code>data = [line.strip() for line in open("/home/user/data.txt",  "rb").readlines()]
</code></pre>
