由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - how to set cutoff for sorting within unix system
相关主题
[转载] Anybody tried sorting algorithm from NR?[转载] unix下编译fortran 的错误太多,看不到怎么办?
MATLAB 一问Matlab signal mechanism?
在matlab里怎么找到一个数组里的最大k个元素老板的程序在unix上运行没问题
An interview question: how to sort a very long list?请问Unix下,运行matlab的程序
c++, sort() 为啥显示 结果不对how to use matlab remotely from home?
ask for help for R programming (转载)[转载] 请教大虾,关于unix server里执行程序的问题。
Include unix libraries in windows fortranwho knows difference of unix and linux
STrange problem in Fortran programming求助: Unix acc 的man pages
相关话题的讨论汇总
话题: unix话题: cutoff话题: set话题: sorting话题: system
进入Computation版参与讨论
1 (共1页)
f**g
发帖数: 28
1
Hi All,
Does anyone know how to set cutoff for the sort command in the Unix system?
such as
1 desk 200
2 book 300
3 chair 100
How can I filter out the Number < 200 items, and keep the rows with larger
number (200 and 300)?
Many thanks in advance.
F
I*l
发帖数: 1649
2
没看懂
直接sort,然后自己cut off前半部分不就行了

?

【在 f**g 的大作中提到】
: Hi All,
: Does anyone know how to set cutoff for the sort command in the Unix system?
: such as
: 1 desk 200
: 2 book 300
: 3 chair 100
: How can I filter out the Number < 200 items, and keep the rows with larger
: number (200 and 300)?
: Many thanks in advance.
: F

c*******a
发帖数: 18
3
use awk

?

【在 f**g 的大作中提到】
: Hi All,
: Does anyone know how to set cutoff for the sort command in the Unix system?
: such as
: 1 desk 200
: 2 book 300
: 3 chair 100
: How can I filter out the Number < 200 items, and keep the rows with larger
: number (200 and 300)?
: Many thanks in advance.
: F

c*******a
发帖数: 18
4
suppose your file name is feng.txt
use the following command
awk '{if ($3 >=200) print $0}' feng.txt|sort -k 3b

?

【在 f**g 的大作中提到】
: Hi All,
: Does anyone know how to set cutoff for the sort command in the Unix system?
: such as
: 1 desk 200
: 2 book 300
: 3 chair 100
: How can I filter out the Number < 200 items, and keep the rows with larger
: number (200 and 300)?
: Many thanks in advance.
: F

1 (共1页)
进入Computation版参与讨论
相关主题
求助: Unix acc 的man pagesc++, sort() 为啥显示 结果不对
fortran给数组赋初值一问ask for help for R programming (转载)
一个简单的算法问题? (转载)Include unix libraries in windows fortran
请问在windows下可以同时运行两个matlab吗?STrange problem in Fortran programming
[转载] Anybody tried sorting algorithm from NR?[转载] unix下编译fortran 的错误太多,看不到怎么办?
MATLAB 一问Matlab signal mechanism?
在matlab里怎么找到一个数组里的最大k个元素老板的程序在unix上运行没问题
An interview question: how to sort a very long list?请问Unix下,运行matlab的程序
相关话题的讨论汇总
话题: unix话题: cutoff话题: set话题: sorting话题: system