由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Help on Unix problem
相关主题
Ask for your help!cygwin 问题一问
How to find a file in the deep children directory?请教一个UNIX问题, 也许很低级, 谢谢
where is gcc?UNIX cpio problem
[转载] UNIX下的一个奇怪问题!怎样使UNIX下homepage目录下的内容
Some simple Unix questions呼唤 coconut
请教e-mail的设置UNIX 拷贝问题
how to delete this directory?FTP Help
Korn shell scriptIs there any software can D/L a whole directory?
相关话题的讨论汇总
话题: unix话题: file话题: abut话题: problem话题: log
进入Unix版参与讨论
1 (共1页)
m*******s
发帖数: 6
1
My dear friend, recently I was frustated by bioinformatic homework. It is abut
unix, so I come here to get help.
write a command that copies the last 100 lines of the one log file to a file
in your home directory.
Thanks a lot!
m*****e
发帖数: 4193
2
last -n 100 log_file > ~/

【在 m*******s 的大作中提到】
: My dear friend, recently I was frustated by bioinformatic homework. It is abut
: unix, so I come here to get help.
: write a command that copies the last 100 lines of the one log file to a file
: in your home directory.
: Thanks a lot!

yy
发帖数: 45
3
I think it might be "tail" instead of last.
tail -n 100 log_file > ~/

【在 m*****e 的大作中提到】
: last -n 100 log_file > ~/
m*******s
发帖数: 6
4
Thanks, it works! When I open the new file (the oringinal file is
access_log)in my home directory and try to read it, it says "wtmp begins Tue
Dec 21 17:12:55 2004", what is means? Thanks!

abut
file

【在 m*****e 的大作中提到】
: last -n 100 log_file > ~/
m*******s
发帖数: 6
5
Yeah, the tail command works. Thanks!

is abut
file

【在 yy 的大作中提到】
: I think it might be "tail" instead of last.
: tail -n 100 log_file > ~/

1 (共1页)
进入Unix版参与讨论
相关主题
Is there any software can D/L a whole directory?Some simple Unix questions
A simple question!请教e-mail的设置
[转载] 问一个问题how to delete this directory?
gcc in mac OSXKorn shell script
Ask for your help!cygwin 问题一问
How to find a file in the deep children directory?请教一个UNIX问题, 也许很低级, 谢谢
where is gcc?UNIX cpio problem
[转载] UNIX下的一个奇怪问题!怎样使UNIX下homepage目录下的内容
相关话题的讨论汇总
话题: unix话题: file话题: abut话题: problem话题: log