Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python code in bash script

read -p "How many numbers: " n
python <<END
for i in range($n):
    print(i)
print("Literal dollar sign $")
END
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #python #code #bash #script
ADD COMMENT
Topic
Name
2+4 =