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

java - How to Configure JAXRS and Spring With Annotations -

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

php - Create image in codeigniter on the fly -