Linux sed 仅保留匹配行
如:./wav/isolated_digits_ti_train_endpt/WOMAN/RA/1B_endpt.wav./wav/isolated_digits_ti_...
如:
./wav/isolated_digits_ti_train_endpt/WOMAN/RA/1B_endpt.wav
./wav/isolated_digits_ti_train_endpt/WOMAN/RA/ZA_endpt.wav
./wav/isolated_digits_ti_train_endpt/WOMAN/RA/6A_endpt.wav
./wav/isolated_digits_ti_train_endpt/WOMAN/RA/3A_endpt.wav
./wav/isolated_digits_ti_train_endpt/WOMAN/RA/4B_endpt.wav
./wav/isolated_digits_ti_train_endpt/WOMAN/RA/3B_endpt.wav
我指向保留含有 3 的行 而删除其他 展开
./wav/isolated_digits_ti_train_endpt/WOMAN/RA/1B_endpt.wav
./wav/isolated_digits_ti_train_endpt/WOMAN/RA/ZA_endpt.wav
./wav/isolated_digits_ti_train_endpt/WOMAN/RA/6A_endpt.wav
./wav/isolated_digits_ti_train_endpt/WOMAN/RA/3A_endpt.wav
./wav/isolated_digits_ti_train_endpt/WOMAN/RA/4B_endpt.wav
./wav/isolated_digits_ti_train_endpt/WOMAN/RA/3B_endpt.wav
我指向保留含有 3 的行 而删除其他 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |