deroff(1) General Commands Manual deroff(1)Name
deroff - remove formatting codes from text
Syntax
deroff [-w] file...
Description
The command reads each file in sequence and removes all and command lines, backslash constructions, macro definitions, constructs (between
.EQ and .EN lines or between delimiters), and table descriptions and writes the remainder on the standard output. The command follows
chains of included files (.so and .nx commands); if a file has already been included, the .so command is ignored and an .nx command termi-
nates execution. If no input file is given, reads from the standard input file.
Options-w Generates word list (one word per line).
Restrictions
The command is not a complete interpreter, so it can be confused by subtle constructs. Most errors result in too much rather than too lit-
tle output.
The -w flag removes every one- or two-character word.
See Alsodiction(1), nroff(1)deroff(1)
Check Out this Related Man Page
DEROFF(1) General Commands Manual DEROFF(1)NAME
deroff - remove nroff, troff, tbl and eqn constructs
SYNOPSIS
deroff [ -w ] file ...
DESCRIPTION
Deroff reads each file in sequence and removes all nroff and troff command lines, backslash constructions, macro definitions, eqn con-
structs (between `.EQ' and `.EN' lines or between delimiters), and table descriptions and writes the remainder on the standard output.
Deroff follows chains of included files (`.so' and `.nx' commands); if a file has already been included, a `.so' is ignored and a `.nx'
terminates execution. If no input file is given, deroff reads from the standard input file.
If the -w flag is given, the output is a word list, one `word' (string of letters, digits, and apostrophes, beginning with a letter; apos-
trophes are removed) per line, and all other characters ignored. Otherwise, the output follows the original, with the deletions mentioned
above.
SEE ALSO troff(1), eqn(1), tbl(1)BUGS
Deroff is not a complete troff interpreter, so it can be confused by subtle constructs. Most errors result in too much rather than too
little output.
7th Edition April 29, 1985 DEROFF(1)
Hi,
I need to find the number of occurrence of string in a file,
for ex:
>cat filename
abc
abc
def
ghi
ghi
ghi
ghi
abc
abc
>output would be
abc 4
def 1 (10 Replies)
hi,
when i am doing the following things getting error
Can anyone please suggest
i have a file where there is a line like the following
branch=dev sdf dev jin kilii fin kale boyle dev james dev
i want to search the existance of dev in the above line.
cat "$file" | sed -n... (8 Replies)
Version Info:
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
$
$ uname -a
Linux stryker138 2.6.18-308.13.1.el5 #1 SMP Thu Jul 26 05:45:09 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
I redirected manpage of ksh command's output to a text file as shown... (6 Replies)
I have the line below to echo values with tab between them. The text is also colored, however, some\t does not work.
The output of this one below will have the first two \t not working.
echo "\033}\t$time\t$end\t$day\t$score\033
This one below will have all the \t working but will also... (4 Replies)