由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [转载] A shell script question. :)
相关主题
关于perl和linux shell script的书最经典有哪些? (转载)a emacs and shell script question
用python生成傻shell脚本如何?控制程序自动化执行, 该用 perl, python or shell script ?
关于shell script的一个问题这句shell script 为什么这么写
Shell script 问题怎么实现这个alias (转载)
shell script question如何从代码里向yarn动态提交一个spark job
Help with a simple c-shell script.C++ string to int Problem
[合集] how to call a korn shell script in JAVA program?问计算机词汇的翻译 -- flush
[合集] Shell script problem?我也问个UDP网络编程中遇到的问题
相关话题的讨论汇总
话题: shell话题: script话题: question话题: use话题: words
进入Programming版参与讨论
1 (共1页)
a*****i
发帖数: 4391
1
【 以下文字转载自 Linux 讨论区 】
【 原文由 ayanami 所发表 】
How do I use shell command only to determine the most frequently appeared
word in a text file?
j*****h
发帖数: 62
2
I guess you can do it in the following steps, using shell pipes to connect them.
1. use "sed" to convert the text into a stream of words separated by newline
2. use "sort" to sort the words
3. use "uniq" to count the number of unique words.

【在 a*****i 的大作中提到】
: 【 以下文字转载自 Linux 讨论区 】
: 【 原文由 ayanami 所发表 】
: How do I use shell command only to determine the most frequently appeared
: word in a text file?

1 (共1页)
进入Programming版参与讨论
相关主题
我也问个UDP网络编程中遇到的问题shell script question
read a file and check if there's identical entryHelp with a simple c-shell script.
请帮忙看一下这个c程序(更新)[合集] how to call a korn shell script in JAVA program?
C++ Q13: Input[合集] Shell script problem?
关于perl和linux shell script的书最经典有哪些? (转载)a emacs and shell script question
用python生成傻shell脚本如何?控制程序自动化执行, 该用 perl, python or shell script ?
关于shell script的一个问题这句shell script 为什么这么写
Shell script 问题怎么实现这个alias (转载)
相关话题的讨论汇总
话题: shell话题: script话题: question话题: use话题: words