PGTS PGTS Pty. Ltd.   ACN: 007 008 568               Mobile Version Coming Soon

point Site Navigation







Valid HTML 4.01!






   Stop Spam! Stop Viruses!
   Secure And Reliable Ubuntu Desktop!

   Ubuntu

   If you own a netbook/laptop~
   Download Ubuntu Netbook!





Fedback Column, July 2002.

If you have a question regarding any of the articles in this journal, or some comments please send them in. If there are any general questions about Unix or Database Administration, I will attempt to answer them.

If you wish to have the text of your e-mail printed in this fedback column, you should include at least your first name, your city and your country. If you include this information, the body text of your e-mail will be published along with your name, city and country. Other information, such as your e-mail address, or any other additional information about you, that could be extracted from your e-mail, will be withheld, unless you request otherwise.

To Send Email: Click Here


Using the ! command in vi.

The ! command described in the article on formatting text with perl, must be executed from visual command mode. Not from ex mode. So if you enter ex mode by pressing ':' and then enter an '!', whatever you type next will be sent to the shell. The results will appear in a seperate portion of the screen that will dissappear when you press [Enter]. On the other hand the '!' command entered from visual command mode must be accompanied by a movement command. For example:

	!30j grep -v 'blah$'

	This will take the next thirty lines feed them into the shell
	command and replace them with the result. In this case it will
	be those lines that do not have 'blah' as the last four letters
	on each line. In most versions of vi, nothing will appear until
	you have actually entered the '!30j', so don't be confused.


Reading HTML attachments with mutt.

If you are running mutt on a text only system console, the easiest way to view HTML is by pressing the 'v' letter. This will show the attachments that are included. Position the cursor on the attachement you wish to view and enter:

	|lynx -stdin -dump|less
Press 'q' to exit less.

If you grow tired of typing this every time you wish to view an HTML file. You can create or add the following line to a file called .mailcap in your home directory:

	text/html; lynx -dump %s; nametemplate=%s.htm; copiousoutput

if you wanted to include the text of the sender's HTML e-mail in a reply, you could enter:

	|lynx -stdin -dump>mutt.tmp
Then when you reply just include the reply with:
	:r mutt.tmp