bash - How to convert this Python script to a shell script? -
this python script.
with open('a') f: a, b = f a, b = a.strip(), b.strip()
it opens file "a" , first line becomes a, second line becomes b
now can use , b anywhere in python script.
example:
print print b
i need code bash.
set permision execution , add @ first line
#!/usr/bin/env python
Comments
Post a Comment