A man page is not just a simple text document. When you issue man <something> you will notice that bold printing and maybe other formatting appears. This is done by "compiling" man (source) pages with a text formatting utility: troff, which basically inserts these formatting codes into the text.
If you have gotten your man page by a command like:
then these formatting codes are still in it.
just doesn't display them. Use a utility like deroff to remove the formatting and markup.
Hi,
Could someone tell me how to delete a particular text inside an existing file without opening the file?
e.g. I have a text file called mytext.txt which contains three lines of text below and I want to delete “ ;” and delete the second line “b ;” including the carriage return.
a ;
b ;
c ;... (12 Replies)
Hi
To delete some text in 2 files in line1 ( not complete line) in unix without opening the files.
For example: source file is like this
<?xml version="1.0"... (5 Replies)
I have a requirement where i have to read from a .sh file a text lying bet characters like 'SELECT' & ';'...Please help me out in this. I am new to shell scripting. (2 Replies)
I have a text file that looks like this:
I want to delete the last character of first column in all rows so that my output looks like this:
Thanks a lot! (1 Reply)
When I use vi to see what's in the file I get this:
int add1(int x) {^M return x + 1;^M}
^Mint subtract1(int x) {^M return x - 1;^M}
^Mint double_it(int x) {^M return x * 2;^M}
^Mint halve_it(int x) {^Mreturn x / 2;^M}
^Mint main() {^M int myint;^M int result;^M ... (2 Replies)
Hi,
I heard a command that can collect all RHEL 5 log in a single compress file before I forget.
Does any body know...What the command is ?
Thanks. (4 Replies)
I have a tab delimited file of the following format
2 L a
2 G b
2 L c
2 G a
3 G a
3 G b
3 L c
4 L a
4 G a
4 G b
4 L c
4 G a
..
...
I want to count the number of G's and L's with in the first column and the third column/categories such that I would get an output file: (6 Replies)
Guys,
I know that the below command will cut the 13th field from test.txt file
awk -F"|" '{print $13}' test.txt
The answer would be,
CA
CN
Ohio
If we see the 3 rd one, it has more than 2 characters. So i wanted to check this in if condition and i want to get the output if the 13th... (4 Replies)
Hello,
I'm trying to figure out how to display Chinese and Japanese Characters on my RHEL 6 Console. There is no more "bogl-bterm" for RHEL6, that is not supported anymore. Is there any way that I could display them?
Thank you. (2 Replies)
I am using flatfile, in that flat file we are getting the junk chars
1)I21001f<82>^Me<85>!h49 Service Charge
2) I21001f‚
e...!h49 Service Charge
please tell me how to remove all junk chars in unix scripts. (1 Reply)
Discussion started by: Talari
1 Replies
LEARN ABOUT FREEBSD
catman
CATMAN(1) BSD General Commands Manual CATMAN(1)NAME
catman -- preformat man pages
SYNOPSIS
catman [-fLnrv] [directories ...]
DESCRIPTION
The catman utility preformats all the man pages in directories using the nroff -man command. Directories may be separated by colons instead
of spaces. If no directories are specified, the contents of the MANPATH environment variable is used, or if that is not set, the default
directory /usr/share/man is processed.
The options are as follows:
-f Force all man pages to be reformatted even if the corresponding cat page is newer.
-L Process only localized subdirectories corresponding to the locale specified in the standard environment variables.
-n Print out what would be done instead of performing any formatting.
-r Scan for and remove ``junk'' files that are neither man pages nor their corresponding formatted cat pages.
-v Cause catman to be more verbose about what it is doing.
ENVIRONMENT
LC_ALL, LC_CTYPE, LANG
These variables control what subdirectories will be processed if the -L option is used.
MACHINE If set, overrides the current machine type when searching for machine specific man page subdirectories.
MACHINE_ARCH
If set, overrides the current architecture when searching for architecture specific man page subdirectories.
MANPATH Determines the set of directories to be processed if none are given on the command line.
FILES
/usr/share/man Default directory to process if the MANPATH environment variable is not set.
EXIT STATUS
The catman utility exits 0 on success, and >0 if an error occurs.
SEE ALSO makewhatis(1), man(1), nroff(1)HISTORY
A previous version of the catman command appeared in FreeBSD 2.1.
AUTHORS
John Rochester
BSD December 3, 2005 BSD