words to live by
Sunday, March 9th, 2008A weird imagination is most useful to gain full advantage of all the features.
— screen(1) manual.
A weird imagination is most useful to gain full advantage of all the features.
— screen(1) manual.
How did I manage to go for so long without knowing about screen? screen allows you to create several connection sessions to a terminal, switch between them, detach from them, then reconnect from anywhere. I’d previously had to to set up long-running remote jobs as background jobs, relying on nohup and various methods to prevent terminal output. But no more!
This page taught me all I know about screen: screen: Keep Your Processes Running Despite A Dropped Connection
It has always irked me that OS X doesn’t have the seq command (I am easily irked). Brian Peterson’s old e-mail Re: seq from core utils has it, but the link to sh-utils doesn’t work any more, since the project has been archived. Here’s the new link: http://ftp.gnu.org/old-gnu/sh-utils/. Compile it as Brian suggested, and all will be well.
$ seq 1 12 1 2 3 4 5 6 7 8 9 10 11 12
Joy!
(at least 99% of you will be mystified why anyone would want this.)
Unix/Linux has a handy little tool called head that will print the first few lines of a file. Run without options, it’ll give you the first few lines, but called f’rintsance head -20, will give you the first 20. It’s worked this way since basically ever.
Now whenever I run it, I get the following smug little message:
head: `-N‘ option is obsolete; use `-n N‘ since this will be removed in the future
I don’t consider myself an old Unix programmer, but I know that there are probably 12 year old scripts of mine working in former employers’ offices far, far away that will need fixing if they ever get rid of the sane old `-N‘ option. For any sakes, why, man, why …?
The message is also rather ambiguous. Why would I want to use `-n N‘ if it will be removed in the future? I knew all along that I should stick with `-N‘. The right of the people to keep and bear
, anyone?heads, shall not be infringed