Skip to content

Instantly share code, notes, and snippets.

@omsobliga
Created March 15, 2016 15:13
Show Gist options
  • Save omsobliga/fcfcbef249ceef4dd3b8 to your computer and use it in GitHub Desktop.
Save omsobliga/fcfcbef249ceef4dd3b8 to your computer and use it in GitHub Desktop.
Start multiple processes in shell
# 查找出当前文件夹中以 x 开头的文件,文件名作为参数传给 python 脚本,然后放到后台执行
for i in x*
do
python t.py $i &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment