02-17-2015
Bold is pretty terminal specific, and done in the presentation layer. Always design presentation on the end, after the data is parsed. Do you really want the shell to be the presentation tool? HTML is much more portable as a text formatting output, using <B>for BOLD</B> and <table>'s, <td> options for alignment.
This User Gave Thanks to DGPickett For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
My file has 2 fields and millions of lines.
variableStep chrom=Uextra span=25
201 0.5952
226 0.330693
251 0.121004
276 0.0736858
301 0.0646982
326 0.0736858
401 0.2952
426 0.230693
451 0.221004
476 0.2736858
Each field either has a... (6 Replies)
Discussion started by: wyarosh
6 Replies
2. UNIX for Dummies Questions & Answers
Hi !
Just wondering, is it possible to color or highlight or underline a matching pattern with awk ?
Or write it in bold, italic.....? (3 Replies)
Discussion started by: lucasvs
3 Replies
3. Shell Programming and Scripting
I am trying to do some math, so that I can compare the average of six numbers to a variable.
Here is what it looks like (note that when I divide really big numbers, it isn't a real number):
$ tail -n 6 named.stats | awk -F\, '{print$1}'
1141804
1140566
1139429
1134210
1084682
895045... (3 Replies)
Discussion started by: brianjb
3 Replies
4. Shell Programming and Scripting
hi I want to write a script, while using the SED editor, to output the text, in this case a variable, to the result file but highlighted it in bold, is it possible to do that? can you tell me how?
eg. in text.txt
sed '$ a\
'$variable'
' <text.txt >text2.txt
so it will add the... (2 Replies)
Discussion started by: piynik
2 Replies
5. Shell Programming and Scripting
Hi I have this list
592;1;Z:\WB\DOCS;/FS3_100G/FILER112/BU/MPS/DOCS;;;;\\FILER112\BUMPS-DOCS\;580,116,544,878 Bytes;656,561 ;77,560
592;2;Z:\WB\FOCUS;/FS3_100G/FILER112/BU/MPS/FOCUS;;;;\\FILER112\BUMPS-FOCUS\;172,430 Bytes;6 ;0 ... (12 Replies)
Discussion started by: nakaedu
12 Replies
6. Shell Programming and Scripting
Based on input
ail,UTT,id1_0,COMBO,21,24,21,19,85
al,UTHAST,id1_0,COMBO,342,390,361,361,1454
and awk code as
awk -F, '{ K=0; for(i=NF; i>=(NF-4); i--) { K=K+$i; J=J+$i;} { print K } } END { for ( l in J ) printf("%s ",J); }'
I'm trying to add columns and lines in single line. line... (6 Replies)
Discussion started by: busyboy
6 Replies
7. Shell Programming and Scripting
Hi
main object is categorize the difference of data-values (TLUFT02B - TLUFT12B).
herefor i read out data-files which are named
acording to the timeformat yyyymmddhhmm.
WR030B 266.48 Grad 0
WR050B 271.46 Grad 0
WR120B 268.11 Grad 0
WV030B 2.51 m/s ... (6 Replies)
Discussion started by: IMPe
6 Replies
8. Shell Programming and Scripting
Hi expert,
I have log :
TOTAL-TIME : 2125264636
DATA-BYTES-DOWN : 3766111307032
DATA-BYTES-UP : 455032157567
DL = (3766111307032/2125264636)/1024 = 1.73
UL = (455032157567/2125264636)/1024 = 0.21
I want the result :
TOTAL = 1.94 ... (4 Replies)
Discussion started by: justbow
4 Replies
9. Shell Programming and Scripting
Hi expert,
i have log this:
Memory: 74410384
Memory: 75831176
Memory: 77961232
Memory: 77074656
Memory: 76086160
Memory: 77128592
Memory: 78045384
Memory: 76696040
Memory: 72401176
Memory: 72520016
Memory: 72137016
Memory: 73175832
Memory: 73034528
Memory: 71770736
Memory:... (4 Replies)
Discussion started by: justbow
4 Replies
10. What is on Your Mind?
FYI,
I'm slowly removing a lot of the bold font-styles from titles of discussions, forum titles, etc
I'm not removing bold for the entire site because we do need bold from time to time, especially in posts and sometimes in other places.
However, the original forum style had way too much... (3 Replies)
Discussion started by: Neo
3 Replies
LEARN ABOUT DEBIAN
nngrep
NNGREP(1) General Commands Manual NNGREP(1)
NAME
nngrep - grep for news group names (nn)
SYNOPSIS
nngrep [ -ainprsu ] [ -l ] [ pattern ]
DESCRIPTION
nngrep can print various selections of the available news groups.
Without options, nngrep will list all currently subscribed newsgroups whose name matches any of the specified patterns. If no pattern is
specified, all subscribed groups will be listed.
The selection of news groups against which the patterns are matches, and subsequently printed by nngrep can be limited or expanded using
the following command line options and arguments:
-a Use both subscribed and unsubscribed groups. Overrides the -u option.
-i Use only ignored groups, i.e. which are not in the presentation sequence.
-n Use only new groups. Notice that nn considers a group to be new until you have read at least one article in the group, or you have
unsubscribed to the group. This means that even reasonable active news groups may remain "new" for quite some time if it only con-
tains articles which are cross-posted to other groups which occur earlier in your presentation sequence.
-p Use only groups with unread (pending) articles.
-r Use only read groups, i.e. without unread articles.
-s Use only groups which are in the presentation sequence.
-u Use only unsubscribed groups.
These options can be combined if they don't logically exclude each other.
For example, to get the names of all "source" groups, you can use the command
nngrep source
You can use this to read a specific subset of news groups with nn; for example
nn `nngrep -sp source`
LONG LISTING
A long listing of the matched groups can be requested with the -l option. It will include the following information:
SUBSCR Specifies whether the group is subscribed or not (yes/no).
NEW Specifies whether the group is new or not (yes/no).
UNREAD Shows the number of unread articles in the group (if any).
SEQUENCE Shows the group's index in the presentation sequence.
GROUP The name of the group.
FILES
~/.newsrc The record of read articles
~/.nn/init The presentation sequence
SEE ALSO
nn(1), nncheck(1), nngoback(1), nngrab(1), nnpost(1), nntidy(1)
nnadmin(1M), nnusage(1M), nnmaster(8)
AUTHOR
Kim F. Storm, Texas Instruments A/S, Denmark
E-mail: storm@texas.dk
4th Berkeley Distribution Release 6.6 NNGREP(1)