avatar
A question for highhands..# Unix - 噫吁兮,危乎高哉
s*g
1
昨晚给老谋子打了个电话, 好久未聊, 寒喧中提到他最近比较郁闷,
一来要侍候多位谋女郎, 心力交悴, 看了名医,说是腰肌劳损严重。
还有计生委那边逼债又摧得紧,所以连一个欢迎神十回家的活动都推
掉了。
我赶紧说那些劳什子哪需你大导演费神, 要不我这有一篇“小凤”的
神文给您读读解闷?还有两节没读完, 就听到老谋子开始来劲了,嗓
门也高了八度: “好素材啊, 拍好了计生委那笔款子就有着落了!”
趁他高兴, 我探听我这次能不能演那个爹, 他犹豫了一会还是同意了。
末了我顺便还向他介绍了一下现今美利坚华埠美女萌男如过江之鲫云云,
他表示要我留意一下, 其他角色看到合适的随时打电话给他, 最后是
千恩万谢才挂了电话。
弱弱地问一句, 我是不是也可以搞个海选什么的?
信则有, 不信则无。呵呵。
avatar
z*w
2
I have a txt file containing a matrix that I need. But there
are 15 lines of unwanted text at the begining, also some unwanted
text to the right of the matrix.
for example the file may look like this:
(Begining of file)
junk junk junk ............
.... (15 line of junk)
junk junk junk ............
0 0 1 2 3 4 5
2 3 5 2 2 3 4 junk
......
......
......
3 3 4 2 4 2 3
(End of file)
How do I get rid of texts of the begining 15 lines
and the texts on the right, leaving only the matrix in a
avatar
wh
3
这个故事不适合拍电影吧,电影太写实了。

【在 s****g 的大作中提到】
: 昨晚给老谋子打了个电话, 好久未聊, 寒喧中提到他最近比较郁闷,
: 一来要侍候多位谋女郎, 心力交悴, 看了名医,说是腰肌劳损严重。
: 还有计生委那边逼债又摧得紧,所以连一个欢迎神十回家的活动都推
: 掉了。
: 我赶紧说那些劳什子哪需你大导演费神, 要不我这有一篇“小凤”的
: 神文给您读读解闷?还有两节没读完, 就听到老谋子开始来劲了,嗓
: 门也高了八度: “好素材啊, 拍好了计生委那笔款子就有着落了!”
: 趁他高兴, 我探听我这次能不能演那个爹, 他犹豫了一会还是同意了。
: 末了我顺便还向他介绍了一下现今美利坚华埠美女萌男如过江之鲫云云,
: 他表示要我留意一下, 其他角色看到合适的随时打电话给他, 最后是

avatar
D*e
4
if you know the dimension of the matrix, it's easy. suppose it's MxN. and M/N
is not too large.
tail -n M infile | awk '{printf "%d %d ... %d\n", $1, $2, ..., $n}' > outfile

【在 z**w 的大作中提到】
: I have a txt file containing a matrix that I need. But there
: are 15 lines of unwanted text at the begining, also some unwanted
: text to the right of the matrix.
: for example the file may look like this:
: (Begining of file)
: junk junk junk ............
: .... (15 line of junk)
: junk junk junk ............
: 0 0 1 2 3 4 5
: 2 3 5 2 2 3 4 junk

avatar
x*n
5
我觉得楼主是剑南。。。

【在 wh 的大作中提到】
: 这个故事不适合拍电影吧,电影太写实了。
avatar
z*w
6
the number of columns of the matrix is not constant.
how can I retrieve this number from "wc -l"?
or is there any options of "tail" to take the all the contents starting
from line 16?
thanks..

M/N
outfile

【在 D**e 的大作中提到】
: if you know the dimension of the matrix, it's easy. suppose it's MxN. and M/N
: is not too large.
: tail -n M infile | awk '{printf "%d %d ... %d\n", $1, $2, ..., $n}' > outfile

avatar
wh
7
swordsman说弱弱吗?看他的帖不多,感觉很不弱……哈哈。

【在 x***n 的大作中提到】
: 我觉得楼主是剑南。。。
avatar
c*c
8
有你参与的杀人或三国杀游戏,你一定是主角吧。

【在 x***n 的大作中提到】
: 我觉得楼主是剑南。。。
avatar
l*i
9
剑男从来不会贱得这么收敛吧...

【在 x***n 的大作中提到】
: 我觉得楼主是剑南。。。
avatar
r*r
10
反正我信了

【在 s****g 的大作中提到】
: 昨晚给老谋子打了个电话, 好久未聊, 寒喧中提到他最近比较郁闷,
: 一来要侍候多位谋女郎, 心力交悴, 看了名医,说是腰肌劳损严重。
: 还有计生委那边逼债又摧得紧,所以连一个欢迎神十回家的活动都推
: 掉了。
: 我赶紧说那些劳什子哪需你大导演费神, 要不我这有一篇“小凤”的
: 神文给您读读解闷?还有两节没读完, 就听到老谋子开始来劲了,嗓
: 门也高了八度: “好素材啊, 拍好了计生委那笔款子就有着落了!”
: 趁他高兴, 我探听我这次能不能演那个爹, 他犹豫了一会还是同意了。
: 末了我顺便还向他介绍了一下现今美利坚华埠美女萌男如过江之鲫云云,
: 他表示要我留意一下, 其他角色看到合适的随时打电话给他, 最后是

avatar
w*r
11
我姓装,装艺谋。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。