BZMORE(1)

Manual page for bzmore, from the General Commands Manual, section 1 ๐ŸŽ€ okay bestie, let's get into it ๐Ÿ’–

โœจ NAME โœจ

okay so bzmore and bzless are file perusal filters for looking at bzip2 compressed text on a crt screen ๐Ÿ–ฅ๏ธ๐Ÿ’… literally the whole vibe is reading compressed text without it being a mess ๐Ÿฆ‹

โœจ SYNOPSIS โœจ

bzmore [ name ...  ]
bzless [ name ...  ]

โœจ NOTE โœจ

ngl this part is so important ๐Ÿซถ in everything below, bzless and less can be used interchangeably with bzmore and more. same energy, different name ๐Ÿ’œ

โœจ DESCRIPTION โœจ

okay so bzmore is a filter that lets you look at compressed or plain text files one screenful at a time on a soft-copy terminal ๐Ÿ“บโœจ it works on files compressed with bzip2 AND on uncompressed files, so it's giving versatile ๐Ÿ’…

bestie, if a file doesn't exist, bzmore will look for a file with the same name plus a .bz2 suffix ๐Ÿงš

bzmore pauses after each screenful and prints --More-- at the bottom of the screen ๐Ÿ™ˆ if you hit carriage return, you get one more line. if you hit space, you get another whole screenful. there are more options, which I'll list below ๐ŸŒธ

bzmore checks /etc/termcap to figure out your terminal's characteristics and the default window size ๐Ÿ”ฅ on a terminal that can show 24 lines, the default window is 22 lines. here's what else you can type while bzmore is paused (i is an optional integer, and it defaults to 1) ๐Ÿ‘‘

  • i<space> โ€” shows i more lines. no number? you get another screenful ๐Ÿ“œ
  • ^D โ€” shows 11 more lines (a "scroll" ๐Ÿ“). if you give an i, the scroll size becomes i ๐Ÿ’–
  • d โ€” same as ^D (control-D) โœจ
  • iz โ€” same as space, except if you include an i, it becomes the new window size ๐ŸŽ€ heads up, the window size goes back to default at the end of the current file ๐Ÿฅบ
  • is โ€” skips i lines and then prints a screenful ๐Ÿฆ‹
  • if โ€” skips i screenfuls and then prints a screenful ๐ŸŒˆ
  • q or Q โ€” quits the current file and moves on to the next one (if there is one) ๐Ÿ’…
  • e or q โ€” when you see --More--(Next file: file), this makes bzmore exit ๐Ÿ’€
  • s โ€” when you see --More--(Next file: file), this makes bzmore skip the next file and keep going ๐Ÿซถ
  • = โ€” shows the current line number ๐Ÿ”ข
  • i/expr โ€” searches for the i-th occurrence of the regular expression expr ๐Ÿ” if it isn't found, bzmore moves on to the next file (if any). if it IS found, you get a screenful starting two lines before the match ๐Ÿ˜ญ you can use your erase and kill characters to edit the regex, and if you erase back past the first column, the search gets cancelled ๐Ÿ™ˆ
  • in โ€” searches for the i-th occurrence of the last regular expression you entered โœจ
  • !command โ€” invokes a shell with command ๐Ÿš the character ! in "command" gets replaced with the previous shell command, and the sequence \! gets replaced with ! ๐Ÿง 
  • :q or :Q โ€” same as q or Q, quits the current file and moves to the next (if any) ๐Ÿ‘‘
  • . โ€” (dot) repeats the previous command ๐Ÿ”

no cap, these commands take effect immediately, so you don't need to hit carriage return ๐Ÿ™Œ before you type the command character itself, you can hit your line kill character to cancel the number you were building ๐Ÿงน you can also hit your erase character to bring back the --More-- message ๐Ÿซง

โš ๏ธ bestie, at any time when output is going to the terminal, you can hit the quit key (usually control-). bzmore will stop sending output and show the usual --More-- prompt. then you can type any of the commands above like normal. BUT some output gets lost when you do this, because any characters waiting in the terminal's output queue get flushed when the quit signal happens ๐Ÿ˜ญ๐Ÿ’€

bzmore sets the terminal to noecho mode so the output can keep flowing ๐ŸŒŠ which means what you type won't show up on your screen, except for the / and ! commands ๐Ÿ‘€

if standard output isn't a teletype, bzmore acts just like bzcat, except it prints a header before each file ๐ŸŽ€

โœจ FILES โœจ

  • /etc/termcap โ€” the terminal database ๐Ÿ—‚๏ธ

โœจ SEE ALSO โœจ

more(1), less(1), bzip2(1), bzdiff(1), bzgrep(1) ๐Ÿฆ‹


okay that's the whole tea, bestie ๐ŸŒˆ๐Ÿ’– the footer says it's BZMORE(1), so you know exactly where to find me when you need more Unix in your life ๐Ÿ’…โœจ