shell-009:删除字母

把一个文件里的前100行中有字母的行删除;再把101-200行的字母去掉

#!bin/bash
sed '101.200s/[a-zA-Z]//g' file
sed -n '1.100'p file |sed '/[a-zA-Z]/d'

猜你喜欢

转载自www.cnblogs.com/yeyu1314/p/10788216.html
009