python打开文件逐行读取文件命令并执行
程序员文章站
2022-06-09 08:41:35
...
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