colcrt(1) General Commands Manual colcrt(1)NAME
colcrt - Filters text processor output for screen previewing
SYNOPSIS
colcrt [- -2] [file...]
The colcrt command filters output from text processors such as nroff so that it can be previewed on a cathode ray tube (CRT).
OPTIONS
Suppresses underlining; this is useful for previewing boxed tables from tbl. Causes all half-lines to be printed, effectively doublespac-
ing the output. This is useful when printing output with subscripts and superscripts on a line printer, where half-lines do not normally
appear.
DESCRIPTION
The colcrt command provides virtual half-linefeed and reverse linefeed sequences for terminals without such capability, and on which over-
striking is destructive. The colcrt command changes underline characters to dashes and places them and half-line characters on new lines in
between the normal output lines.
NOTES
colcrt cannot back up more than 102 lines. General overstriking is lost; as a special case a | (vertical bar) overstruck with a - (dash)
or _ (underline) becomes a + (plus sign). Lines are trimmed to 132 bytes.
EXAMPLES
The following command line illustrates a typical use of colcrt: tbl exum2.n | nroff -ms | colcrt - | more
SEE ALSO
Commands: col(1), deroff(1), more(1), neqn(1), nroff(1), pg(1), tbl(1), ul(1)colcrt(1)
Check Out this Related Man Page
COLCRT(1) BSD General Commands Manual COLCRT(1)NAME
colcrt -- filter nroff output for CRT previewing
SYNOPSIS
colcrt [-] [-2] [file ...]
DESCRIPTION
Colcrt provides virtual half-line and reverse line feed sequences for terminals without such capability, and on which overstriking is
destructive. Half-line characters and underlining (changed to dashing `-') are placed on new lines in between the normal output lines.
Available options:
- Suppress all underlining. This option is especially useful for previewing allboxed tables from tbl(1).
-2 Causes all half-lines to be printed, effectively double spacing the output. Normally, a minimal space output format is used which
will suppress empty lines. The program never suppresses two consecutive empty lines, however. The -2 option is useful for sending
output to the line printer when the output contains superscripts and subscripts which would otherwise be invisible.
EXAMPLES
A typical use of colcrt would be
tbl exum2.n | nroff -ms | colcrt - | more
SEE ALSO nroff(1), troff(1), col(1), more(1), ul(1)BUGS
Should fold underlines onto blanks even with the '-' option so that a true underline character would show.
Can't back up more than 102 lines.
General overstriking is lost; as a special case '|' overstruck with '-' or underline becomes '+'.
Lines are trimmed to 132 characters.
Some provision should be made for processing superscripts and subscripts in documents which are already double-spaced.
HISTORY
The colcrt command appeared in 3.0BSD.
3rd Berkeley Distribution June 30, 1993 3rd Berkeley Distribution
Ok, I know that my next statement will shock half of you and alienate the other half, but please bear with me. I use Windows! :eek: I know, I know! I'm ashamed. :o But I do need some help from you UNIX gurus. :) I hope my previous statement actually got some of you guys who hate me back on... (9 Replies)
I'm trying to find a command which will allow me to remove a range of lines (2-4) from a .dat file from the command line without opening the file.
Someone mentioned using the ex command?
Does anyone have any ideas?
thanks (6 Replies)
Hi2all,
I have following command in IBM HMC console:
lssyscfg -r prof -m Server-9117-MMA-SN655D350 -F lpar_name,min_mem,desired_mem --header
which gives me the following output:
lpar_name,min_mem,desired_mem
lpar1,1024,2048
lpar2,1024,2048
lpar3,2048,4096
What I want is to add in... (3 Replies)
I have lines like:
Mg2.qns W=0.175u
Mg2.qpsb W=0.175u
Mg4.qns W=0.175u
Mg4.qpsb W=0.175u
Which I need to become:
Mg2.qns W=wmg2qns
Mg2.qpsb W=wmg2qpsb
Mg4.qns W=wmg4qns
Mg4.qpsb W=wmg4qpsb
To acheive this individually line by line I use a command like:... (3 Replies)
Hello,
I have a simple question, some scripts have information output on the first of command output such as:
>copyrights by CFIL v1.0
>
>1
>1
>1+1=2
How can I customize the output so I could delete the first line which has copyright line and also the second line which is blank
for... (4 Replies)
I have a file, test.txt with approx 12,000 lines. Each line is a single word that looks like a hex address. There are many repeats. Over half of the lines are the same. I want to count how many UNIQUE lines there are.
#>more test.txt
0x123456
0x56AF23
0x99ABC1
0x123456
0x123456
0x99ABC1... (3 Replies)
I need to add "new lines" of text with special characters, to specific lines in the file. There are 3 modifications needed. Been testing 2 here without success.
#!/usr/bin/perl
use FileHandle;
$file=FileHandle->new;
$FILENAME="/opt/etc/usr/file.txt";
$file->open ("<$FILENAME") or die... (13 Replies)
Hi everybody!
I need to delete several vertical lines in a huge text file.
It should work like the example below. Delete the vertical lines 2 and 8.
123456789
masldfjla
afsajfwel
sajfljsaf
safsarfrl
sajfeljwq
1345679
msldfja
asajfwl
sjfljsf
sfsarfl
sjfeljq
Is there a... (11 Replies)
Hi,
I have 1000 line text file.
I need only the 1st and 8th line from every set of 10 lines, that is,
1,8,11,18,21,21,28,31,38,... lines etc into a text file.
Please let me know how I can achieve the same.
Regards,
Don (2 Replies)
Hi Guys
I'm trying to search for all lines that that do not contain the dash (-) in it.
eg - I have the following list of numbers.I want to see those that donot contain the (-) in it.In this case '20151'
20151-60882
20151-60883
20151-60891
20151
20151-60893
Thanking you in advance. (3 Replies)
hi all,
I am using cntrl w f for this
But now the new file is displayed in half of the screen...and the old file in the other half...
how can ichange this default behaviour ...
say for eg:80% to 1 file and remaining 20 % to the other file.... (4 Replies)
Hi,
I have a file that consist of around six million line, now the task is to divide this file into 12 small file so that each file would have half a million lines in it.
Thanks. (3 Replies)
How do you write a script to ignore all lines except the --- dash lines and then remove --- dashes from the data in a text file?
Also how do you separate data in a text file with a tab (for example, column1 (software) and column2 (date) ) ?
Here is my scripts : I am getting errors in... (3 Replies)