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 - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -