近期优化一个 shell 脚本,通过 shell 多进程并发极大提升了效率,抽象出核心代码记录一下一些注意点,直接注释在代码中,有什么疑问可以评论沟通 :)#!/bin/bash # 运行方式 # bash test.sh # 查看多进程,运行的过程 # watch -d -n 1 'ps aux | grep test.sh | grep -v grep' date pid=$$ # 多

- 阅读全文 -