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
精彩评论