06-15-2005
How to underline/bold and how to align output
Hi,
I work with AIX 5 and have two basic questions:
1) How do I underline/bold a word in a text output? Any way to do it with echo command?
basic example: echo "FOLDER " >> folder.txt ( I wish the word FOLDER to be underlined and bold).
2) Suppose I have the following pipe delimited input file:
Quality A|2|3
Instructions|4|6
Product Review|6|7
How can I fix the output below in order to have the second and third column always aligned (neat output?)
Folder Name Received Read
QualityA 2 3
Instructions 4(starting in same position as above) 5
Product Review 6(starting in same position as above) 7
Instead of
QualityA 2 3 (using tab or space or plain awk)
Instructions 4 5
Product Review 6 7
Appreciate any comments.
thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to print a man page for a command in unix, this is what I did
man command > command.txt
but when I view the output file command.txt I found there are lot of _^H characters that in the man page are actually underline character, how can I replace this _^H with underline character?
... (2 Replies)
Discussion started by: Melissa
2 Replies
2. Shell Programming and Scripting
i want to print underline under a text using shell or awk.can any body help me regarding this problem?
i hav tried with
echo -e -n "\033$4}'
like expected output is
123 456 12
122 567 13
211 087 14
311 987 15
like the avove
Thank you
regards,
Pankaj. (2 Replies)
Discussion started by: panknil
2 Replies
3. Shell Programming and Scripting
I'm trying to "paste" two files but the result is not aligned.
File1 looks like this:
dog.csv
cat.csv
elephant.csv
cougar.csv
File2 looks like this:
2323
33
444
545545
Then I run a paste command:
paste File1 File2 > result.cnt
Then result.cnt file is created like this:... (4 Replies)
Discussion started by: jplayermx
4 Replies
4. Shell Programming and Scripting
I have a script main.shl which has few lines like this
#bold
tput smso
echo "\t\tsome statement\t\t"
tput rmso
I am executing the main.shl from the shell and redirected its output to a separate file like this
$main.shl >main.log 2>&1 &
once after running this script, if I "cat" the... (0 Replies)
Discussion started by: ramkrix
0 Replies
5. Shell Programming and Scripting
Hi All,
This is my first port.....
I am using AIX 5L, installed 10g database.
On daily basis we takes rman backup.
This backup status info strored in a log file.
I write a script to know the status of back means I will fire this script and this script will send a mail to me.
#!/bin/bash... (16 Replies)
Discussion started by: mcagaurav
16 Replies
6. 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
7. Shell Programming and Scripting
Input file
2 5 ASFGEWTEWRQWEQ
10 20 QEWIORUEIOUEWORUQWEQWRQRQWGQWGFQ
1 6 WRQTQWTQTQWTQT
Desired output file
2 5 ASFGEWTEWRQWEQ
10 20 QEWIORUEIOUEWORUQWEQWRQRQWGQWGFQ
1 6 WRQTQWTQTQWTQT
Column 1 is the start region of underline the text in column 3;
Column 2 is the end region of... (13 Replies)
Discussion started by: cpp_beginner
13 Replies
8. Shell Programming and Scripting
Hi,
i have sh program which search for a file in a folder structure and provides its path. This is just used to see if that file exits more that once anywhere down the folder structure. I have used find command to search & printing it output on terminal.
I have attached screen shot of it.... (10 Replies)
Discussion started by: praveenkumar198
10 Replies
9. Shell Programming and Scripting
How to insert header with underline
AM able to insert only header not underline
sed '1i NAME COUNTRY' test.txt
input file
UK 1234
USA 2354
AUS 2253
IND 4256
Output file
NAME COUNTRY_CODE
---- ------------
UK 1234
USA 2354
AUS 2253
IND 4256 (5 Replies)
Discussion started by: Kalia
5 Replies
10. Shell Programming and Scripting
Hi guys,
i am not able to work this out, i need to write a script to monitor the usage of IO DISK READ whenever the IO is above 600MB it will send an email.
So far not able to. Hope you guys can assist me. Thanks!
# iotop -bot --iter=3 |grep DISK|egrep -v TIME
05:22:04 Total DISK READ : ... (8 Replies)
Discussion started by: jaapar
8 Replies
LEARN ABOUT DEBIAN
gtk2::sourceview2::style
Gtk2::SourceView2::Style(3pm) User Contributed Perl Documentation Gtk2::SourceView2::Style(3pm)
NAME
Gtk2::SourceView2::Style
HIERARCHY
Glib::Object
+----Gtk2::SourceView2::Style
METHODS
style = $style->copy
PROPERTIES
'background' (string : default undef : readable / writable / construct-only)
Background color
'background-set' (boolean : default false : readable / writable / construct-only)
Whether background color is set
'bold' (boolean : default false : readable / writable / construct-only)
Bold
'bold-set' (boolean : default false : readable / writable / construct-only)
Whether bold attribute is set
'foreground' (string : default undef : readable / writable / construct-only)
Foreground color
'foreground-set' (boolean : default false : readable / writable / construct-only)
Whether foreground color is set
'italic' (boolean : default false : readable / writable / construct-only)
Italic
'italic-set' (boolean : default false : readable / writable / construct-only)
Whether italic attribute is set
'line-background' (string : default undef : readable / writable / construct-only)
Line background color
'line-background-set' (boolean : default false : readable / writable / construct-only)
Whether line background color is set
'strikethrough' (boolean : default false : readable / writable / construct-only)
Strikethrough
'strikethrough-set' (boolean : default false : readable / writable / construct-only)
Whether strikethrough attribute is set
'underline' (boolean : default false : readable / writable / construct-only)
Underline
'underline-set' (boolean : default false : readable / writable / construct-only)
Whether underline attribute is set
SEE ALSO
Gtk2::SourceView2, Glib::Object
COPYRIGHT
Copyright (C) 2009 by Emmanuel Rodriguez
perl v5.14.2 2011-11-16 Gtk2::SourceView2::Style(3pm)