rav*_*avi 5 unix bash grep csh
我想hard tab characters在unix shell中计算我文档中的数字.
hard tab characters
我该怎么做?
我试过类似的东西
grep -c \t foo
但它在文件foo中给出了t的计数.
Wil*_*ell 13
使用tr丢弃除标签之外的所有内容,然后计数:
< input-file tr -dc \\t | wc -c
che*_*ner 8
Bash使用$'...'表示法来指定特殊字符:
$'...'
grep -c $'\t' foo
归档时间:
13 年,5 月 前
查看次数:
8393 次
最近记录: