English 中文(简体)
最后几个军阀指挥官手稿的每项产出?
原标题:Caching output of last few shell-run command sans script ?

我能否抓住我最后几任指挥官的产出? 注:

  • I often run a slow and verbose command from tcsh, forget to redirect/tee the output, and have the results scroll off the screen. Solutions I ve considered:

    • Run everything inside script . This seems like overkill, since it saves the output of everything, not just the last few commands. I suppose you could cleverly rotate script output files somehow, but this seems ugly.

    • Screen/rxvt/xterm scrollback. This actually works fairly well, unless the output is voluminous (which it often is).

    • Run the command again. Obviously, this is what I m hoping to avoid (though, thanks to filesystem caching, the rerun is often quicker than the first run).

    • 要求停止这种大坝。 没有任何希望。

EDIT: One thought: can I make tcsh run a "post command" on everything I type in? For example, if I say "ls", it secretly runs "ls | tee /tmp/lastout.txt" or something? Is there some setenv variable that does this?

问题回答

我认为,最好的解决办法是增加<条码><<>><>>>>>>>(缺省为100条线)的滚动缓冲。

screen -h 1000

~/. eenrc:

defscrollback 1000




相关问题
KornShell- Creating a fixed width text file

I need to create a simple fixed width text file in KornShell (ksh). My current attempt using printf to pad the string isn t working out very well. What s the shortest, cleanest way to create a fixed ...

unix find command

how to use the find command to find files/directories which are not matching the pattern. for eg: find <some options > -name "dontfile.txt" should give me output of all the find whose file ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

Case insensitive comparison of strings in shell script

The == operator is used to compare two strings in shell script. However, I want to compare two strings ignoring case, how can it be done? Is there any standard command for this?

1. 露台式照像

在Windows XP中,没有一时出现指挥时,是否有办法操作一种灰色文字? 我常常需要把“善待”(工作)与“灰色”同起来,即使我的文字没有产出,......

热门标签