开发者

how do I do groups for unix commands

I wan开发者_如何学运维t do something like this:

python *.py > *.std

I tried doing:

python (*).py > \1.std

but that is wrong,


You don't. You process them in a loop.

for f in *.py
do
  python "$f" > "${f%.py}".std
done
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜