sed "s/[a-z]/$1/g" <old.txt>new.txt echo "done"
这只用给定的第一个参数替换小写字母。我想替换除大写字母以外的所有内容。
sed text-processing
sed ×1
text-processing ×1