Home >Backend Development >Python Tutorial >python opens the file, reads the file command line by line and executes it
import os file = open("cc.txt") for line in file: os.system(line)
file = File.open("ttt.txt") file.each_line do |line| %x(scp #{line.chomp} #{line.replace("/","")}) end