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

Popular posts from this blog

Using 'OR' and 'AND' in SQL Server -

c++ - NetBeans Remote Development with additional configuration -

visual studio - TFS will not accept changes I've made to a Java project -