V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  james122333  ›  全部回复第 67 页 / 共 67 页
回复总数  1322
1 ... 58  59  60  61  62  63  64  65  66  67  
2019-06-03 15:20:40 +08:00
回复了 different 创建的主题 Linux 关于 shell 下的 sleep 问题
#!/bin/bash
while read -r line
do
echo $line
(mpirun -np 1 ~/bin/test &) &
sleep 1
done < tasklist.txt
wait
echo "end..............."
2019-05-03 16:14:11 +08:00
回复了 HarryQu 创建的主题 问与答 我在 Shell 中使用正则表达式替换字符串哪里不对了 ?
shopt -s extglob
test="rm -rf -b hello"
echo ${test//-+([a-z])/}
1 ... 58  59  60  61  62  63  64  65  66  67  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1387 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 17:22 · PVG 01:22 · LAX 09:22 · JFK 12:22
Developed with CodeLauncher
♥ Do have faith in what you're doing.