由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - how to get part of a big text file?
相关主题
如何删除一组文件或给一组文件更名?my script Re: how would you do this?
how to find "exact" word in a file.一个很丢人的问题
一个Shell问题one line information extraction?
a question about "find"?awk question
问:direct files to trash but list file namesreverse the lines?
bash script question: read in textgroup permission
an AWK question?怎样用mail把某一文本文件发送给一个email地址?
how to extract data every 20 lines.what is the problem? what can I do?
相关话题的讨论汇总
话题: file话题: text话题: lines话题: around话题: extract
进入Unix版参与讨论
1 (共1页)
A***g
发帖数: 158
1
I have a 300MB text log file and want to see the lines around
400000, how can I extract the +/-1000 lines around that?
Thanks!
m*****e
发帖数: 4193
2
man head, tail

【在 A***g 的大作中提到】
: I have a 300MB text log file and want to see the lines around
: 400000, how can I extract the +/-1000 lines around that?
: Thanks!

A***g
发帖数: 158
3
i know...
when I grep -n error filename, the line number shows 404055
and then i used head -410000 filename > headoffile
but then the error is missing from this file...
kind of weird but want to know if there is other way i can extract it....

【在 m*****e 的大作中提到】
: man head, tail
A***g
发帖数: 158
4
ft. did a head again and it is there now.....

【在 A***g 的大作中提到】
: i know...
: when I grep -n error filename, the line number shows 404055
: and then i used head -410000 filename > headoffile
: but then the error is missing from this file...
: kind of weird but want to know if there is other way i can extract it....

1 (共1页)
进入Unix版参与讨论
相关主题
what is the problem? what can I do?问:direct files to trash but list file names
如何把一个目录下的文件名全部改成小写?bash script question: read in text
how to contral tar-ed file size?an AWK question?
HELP.how to extract data every 20 lines.
如何删除一组文件或给一组文件更名?my script Re: how would you do this?
how to find "exact" word in a file.一个很丢人的问题
一个Shell问题one line information extraction?
a question about "find"?awk question
相关话题的讨论汇总
话题: file话题: text话题: lines话题: around话题: extract