Posted by
admin on Nov 21st, 2009 in
Everyday News |
Comments Off
deleting mail in Unix
type mail
d * will remove all mail
d 1 3 deletes the 1st and 3rd messages
d 1-3 deletes messages 1 through 3
d deletes the current message
Posted by
admin on Sep 9th, 2008 in
Everyday News |
Comments Off
To remove the ^M characters at the end of all lines in vi, use:
:%s/^V^M//g
The ^v is a CONTROL-V character and ^m is a CONTROL-M. When you type this, it will look like this:
:%s/^M//g