03-18-2015
A flat file is just what it is (generally speaking)... it's text. I you don't plan to use a text editor to view the file, then perhaps what you need to output is something like HTML instead (?). That way you have some markup control than can be interpreted by the end device. If you wan to go totally old school though there is also nroff/troff. Basically the format that raw "man pages" are in. Yep... it's old, but still used.... and in some ways, can be better than something like HTML just because of the number of end device handlers out there (including ones for taking the format to HTML).
Does that make sense? Things like "bold" are terminal (viewing or output device) specific.
---------- Post updated at 09:42 AM ---------- Previous update was at 09:38 AM ----------
Quote:
Just got up, but if you tell this one to use ncurses so he has bold for his scripts.. you could use TUI as well.
Though, its 'termcap' too, isnt it?
Well... because ncurses support both dbs... technically they'll tell you that you must call it a "termcap" package. But it does both. I only mentioned it because the FreeBSD mailling lists indicated that it's one way to get a terminfo db on FreeBSD.
10 More Discussions You Might Find Interesting
1. Programming
I made a liitle source about that..
BUt I got a trouble when making files'authority..
How can I display them??
p.s.) used struct stat .. (1 Reply)
Discussion started by: sangjinn
1 Replies
2. Shell Programming and Scripting
We have some unseen chars in unix, like '^T's, can be seen with 'cat -v' command.
Is there any way, with which, we can replace these ^T s with a space? (1 Reply)
Discussion started by: videsh77
1 Replies
3. UNIX for Dummies Questions & Answers
pls disregard got my question answered . as you can't do bold in vi (0 Replies)
Discussion started by: xzyan
0 Replies
4. UNIX for Dummies Questions & Answers
Folks;
I'm writing this as a part of a script:
echo "col1 hdg|col2hdg|col3hdg|"
How can i make these fields shows in Bold text? (10 Replies)
Discussion started by: moe2266
10 Replies
5. Shell Programming and Scripting
I was using the following bash command inside the emacs compile command to search C++ source code:
grep -inr --include='*.h' --include='*.cpp' '"' * | sed "/include/d" | sed "/_T/d" | sed '/^ *\/\//d' | sed '/extern/d'
Emacs will then position me in the correct file and at the correct line... (0 Replies)
Discussion started by: siegfried
0 Replies
6. Programming
I need tutorial on Make utility on Unix.
Any help or link appreciated.
many thanks
Mirko (3 Replies)
Discussion started by: mmipko
3 Replies
7. Shell Programming and Scripting
I know this should be simple, but I've been manning sed awk grep and find and am stupidly stumped :(
I'm trying to use sed (or awk, find, etc) to find 4 characters on the second line of a file.txt 44-47 characters in. I can find lots of sed things for lines, but not characters. (4 Replies)
Discussion started by: unclecameron
4 Replies
8. Shell Programming and Scripting
Is there any way to redirect characters in bold to .csv file using KSH. I need to open this csv in MS EXCEL.
thanks (4 Replies)
Discussion started by: param_it
4 Replies
9. Shell Programming and Scripting
Hi ,
Could you please guide me how to remove formatting (bold text) in a unix file?
vi editor showing like this...
^
Cat command showing like this...
tl21ss01
tl21ss02
tl21ss03 (6 Replies)
Discussion started by: suresh3566
6 Replies
10. UNIX for Beginners Questions & Answers
Hi Team,
I have a file a1.txt with data as follows.
dfjakjf...asdfkasj</EnableQuotedIDs><SQL><SelectStatement modified='1' type='string'><!
The delimiter string: <SelectStatement modified='1' type='string'><!
dlm="<SelectStatement modified='1' type='string'><!
The above command is... (7 Replies)
Discussion started by: kmanivan82
7 Replies
MAN(7) Miscellaneous Information Manual MAN(7)
NAME
man - macros to typeset manual
SYNOPSIS
nroff -man file ...
troff -man file ...
DESCRIPTION
These macros are used to lay out pages of this manual. A skeleton page may be found in the file /usr/man/man0/xx.
Any text argument t may be zero to six words. Quotes may be used to include blanks in a `word'. If text is empty, the special treatment
is applied to the next input line with text to be printed. In this way .I may be used to italicize a whole line, or .SM followed by .B to
make small bold letters.
A prevailing indent distance is remembered between successive indented paragraphs, and is reset to default value upon reaching a non-
indented paragraph. Default units for indents i are ens.
Type font and size are reset to default values before each paragraph, and after processing font and size setting macros.
These strings are predefined by -man:
*R `(Reg)', trademark symbol in troff.
*S Change to default type size.
FILES
/usr/lib/tmac/tmac.an
/usr/man/man0/xx
SEE ALSO
troff(1), man(1)
BUGS
Relative indents don't nest.
REQUESTS
Request Cause If no Explanation Break Argument t no t=n.t.l.*Text t is bold.
t no t=n.t.l. Join words of t alternating bold and italic. t no t=n.t.l. Join words of t alternat-
ing bold and Roman.
i. Begin paragraph with hanging indent. t no t=n.t.l. Text t is italic. t no t=n.t.l. Join words of t alternating italic and
bold.
x x. t no t=n.t.l. Join words of t alternating italic and Roman.
d.
Set prevailing indent to .5i.
Set prevailing indent to amount of starting .RS. t no t=n.t.l. Join words of t alternating Roman and bold. t no t=n.t.l. Join
words of t alternating Roman and italic.
move left margin in distance i. Set prevailing indent to .5i for nested indents.
t yes t=n.t.l. Subhead.
t no t=n.t.l. Text t is small.
n(c) named n(c)
n of chapter c; x is extra commentary, e.g. `local', for page foot. Set prevailing indent and tabs to .5i.
i. Begin indented paragraph with hanging tag given by next text line. If tag doesn't fit, place it on separate line.
* n.t.l. = next text line; p.i. = prevailing indent
page x yes - Begin n(c)