An atheist is just somebody who feels about Yahweh the way any decent Christian feels about Thor or Baal or the golden calf. As has been said before, we are all atheists about most of the gods that humanity has ever believed in. Some of us just go one god further. (Richard Dawkins)
I have a rescue disk that doesn't include "more" or "less" - how can I examine large files?
I'd say to get a better rescue disk, but maybe this is some ancient SCO
Unix system where you are lucky to have anything at all, so let's see
what can be done.
Just two quick things first: are you sure you aren't just using a bad $PATH? Would a "chroot" to the hard drive help? NO? OK, then..
I suppose if you don't have "more", you probably don't have "vi", "vim", or "view" either, right?
Maybe you have "ed" or "sed"?
$ ed logs/access.log
.. lines from the file
$ sed -n '25,50p' logs/access.log
You can try being quick with CTRL-S. If that will work for you, you might want to do "stty -ixany" so that you have to use CTRL-Q to restart output.
Maybe read it on paper?
cat /var/log/messages > /dev/lp0
Watch out for line endings - if this is a Unix file and the printer is not doing CR/LF translation, you'll get stair-stepped output. Echoing Escape-&k2G to a HP Laserjet will fix that. I think every printer has some way to do that, but it could require dip switches. You can change "stty onlcr opost" in a script to avoid that, but that won't work for a network printer. You can translate on the fly with "sed" :
sed 's/$/\r/' /var/log/messages > /dev/lp0
You could split it into pieces and look at them separately:
split -l 24 /var/log/syslog
for i in xa*
echo "press enter for next"
Do I need to remind you that if you know what you are looking for "grep"
Good old dd can (clumsily) print out parts of files.