Less is better, than tail
I’ve been using tail to watch my log files for years:
tail -f log/production.log
It works great all the time, until you want to search for something, then you have to ctrl+c and open the file in less or vi.
Maybe there is a better way? After some googling, I found less is the answer:
less +F log/production.log
less +F works exactly like tail -f, with more:
- Simply press ctrl+c to switch to editing model, so you can scroll backward and using any more/vi command, such as /pattern to search
- Press shift+f again to switch back to tail model
Anyway, just run man less to find some more information.
Thinking
If you think you are beaten, you are
If you think you dare not, you don’t,
If you like to win, but you think you can’t
It is almost certain you won’t.If you think you’ll lose, you’re lost
For out of the world we find,
Success begins with a fellow’s will
It’s all in the state of mind.If you think you are outclassed, you are
You’ve got to think high to rise,
You’ve got to be sure of yourself before
You can ever win a prize.Life’s battles don’t always go
To the stronger or faster man,
But soon or late the man who wins
Is the man WHO THINKS HE CAN!
Why we need upgrade to iPhone 3G S?
Here are the reasons beside of the awesome 3m camera:
iPhone OS 3.0 Feature | iPhone | iPhone 3G | iPhone 3G S |
Cut, Copy & Paste | √ | √ | √ |
Landscape keyboard | √ | √ | √ |
Spotlight search | √ | √ | √ |
Parental controls | √ | √ | √ |
Shake to shuffle | √ | √ | √ |
Voice Memos | √ | √ | √ |
Peer-to-peer connectivity1 | √2 | √ | √ |
MMS3 | √ | √ | |
Stereo Bluetooth | √ | √ | |
Internet tethering4 | √ | √ | |
Video recording | √ | ||
Compass | √ | ||
Voice Control | √ | ||
Accessibility | √ | ||
Nike + iPod | √ |
Notes:
1. Peer-to-peer connectivity requires compatible applications, which can be downloaded from the App Store when available.
2. The original iPhone does not support using Bluetooth for peer-to-peer connectivity. It can use Wi-Fi and cellular data networks for peer-to-peer connectivity.
3. MMS is not available in all areas; fees may apply. See your carrier for availability.
4. Internet tethering is not currently offered in the United States and some other countries. See your carrier for availability.