由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Is this shell programming right?
相关主题
shell programming问题:如何同时run多个作业question about temperay file in sort command
[急!] Shell Programming求救login shell and normal shell?
Help! shell programminghow to change login shell?
A Question on Shell (ksh) programmingrecommend a network programming book
[转载] shell programming and awk questionsJob Opportunity
菜鸟问题-about shell programmingHow to sort email address?
菜鸟2问题-about shell programming[转载] HELP:如何产生(0..N-1)共N个"各不相同"的随机数?要求算法最快
求教,学shell programPine: how to sort the received email?
相关话题的讨论汇总
话题: shell话题: sort话题: right话题: uniq
进入Unix版参与讨论
1 (共1页)
m****a
发帖数: 5
1
I want to display the count of different words in a text file,will this do?
tr '[A-Z]' '[a-z]'|sort|uniq -c|sort -rn
c*****e
发帖数: 32
2

No, sort and uniq is operating by lines not words

【在 m****a 的大作中提到】
: I want to display the count of different words in a text file,will this do?
: tr '[A-Z]' '[a-z]'|sort|uniq -c|sort -rn

p*********f
发帖数: 633
3

What is the problem with ``wc -w''?

【在 m****a 的大作中提到】
: I want to display the count of different words in a text file,will this do?
: tr '[A-Z]' '[a-z]'|sort|uniq -c|sort -rn

a**n
发帖数: 313
4
Give you a hint, you can use associate array to do it.

【在 m****a 的大作中提到】
: I want to display the count of different words in a text file,will this do?
: tr '[A-Z]' '[a-z]'|sort|uniq -c|sort -rn

1 (共1页)
进入Unix版参与讨论
相关主题
Pine: how to sort the received email?[转载] shell programming and awk questions
How to sort files by date?菜鸟问题-about shell programming
what wrong with these thread program. Thanks for helping菜鸟2问题-about shell programming
[转载] 继续请教几个问题!急!!求教,学shell program
shell programming问题:如何同时run多个作业question about temperay file in sort command
[急!] Shell Programming求救login shell and normal shell?
Help! shell programminghow to change login shell?
A Question on Shell (ksh) programmingrecommend a network programming book
相关话题的讨论汇总
话题: shell话题: sort话题: right话题: uniq