Field name in Bold letters


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Field name in Bold letters
# 1  
Old 05-06-2010
Field name in Bold letters

Hi All,

I have a file which is in csv format which is an out of a script. I am trying to append at the head of the file with the field name of the columns using a shell script :sed command

Code:
 tput bold
 sed '1i\
TimeStamp, Directory Structure, Action, Filename, Status, Filesize' testfile.rpt1 > testfile.rpt2
 tput sgr0

But when i open it in excel on windows, the header is not in bold letters. Can anybody help me in fixing this issue? is there a way for it actually?
# 2  
Old 05-06-2010
it can't be achieved via tput command.
its better you go for txt2pdf or txt2html tools..
# 3  
Old 05-06-2010
Quote:
Originally Posted by Tuxidow
Hi All,

I have a file which is in csv format which is an out of a script. I am trying to append at the head of the file with the field name of the columns using a shell script :sed command

Code:
 tput bold
 sed '1i\
TimeStamp, Directory Structure, Action, Filename, Status, Filesize' testfile.rpt1 > testfile.rpt2
 tput sgr0

But when i open it in excel on windows, the header is not in bold letters. Can anybody help me in fixing this issue? is there a way for it actually?
You can't format a csv file like that, better is to create a macro in excel to do the job for you, should be something like:
Code:
Rows("1:1").Select
Selection.Font.Bold = True

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bold Characters

Hi All, How to make the characters bold in k shell. like for example "File is too large to view" to "File is too large to view" is it like echo "File is too large to view" Please advice and samples (18 Replies)
Discussion started by: rajeshorpu
18 Replies

2. Shell Programming and Scripting

how to display in bold

Hi, i am using mailx option to send mail from unix In the body of the mail i want certain numbers to be displayed in bold Is there any way to do it If so, can anyone help me in this regard. (2 Replies)
Discussion started by: trichyselva
2 Replies

3. Shell Programming and Scripting

how can i bold a text

Dear i want to bold a text using shell script. please give sample.. Thanks rex (1 Reply)
Discussion started by: jrex1983
1 Replies

4. UNIX for Dummies Questions & Answers

What does a bold filename in ls mean?

I am ssh'd into my box using a terminal emulation of vt100. When I do a directory listing (ls) some of the file names are bold. I know that directories are also in bold, but these are not directories. What does a bolded filename mean? This seems like such a basic question, but I've spent 20... (3 Replies)
Discussion started by: nunemaj
3 Replies

5. Shell Programming and Scripting

color,bold

hi friend , I am generating a csv file i,e output file E104|0|06/04/1994|The values E005 and E001 are not equal. E106|0|01/09/1993|The values E001 and E002 are not equal. E106|0|01/09/1993|The values E003 and E002 are not equal. E108|0|02/30/1995|The values R001 and E001 are not equal.... (0 Replies)
Discussion started by: charandevu
0 Replies

6. UNIX for Dummies Questions & Answers

How can i make this bold

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

7. Programming

Bold text

hello, how do i display the text in the printf statement in bold. or is there anyway to display the text on the console in bold thx in advance svh (3 Replies)
Discussion started by: svh
3 Replies

8. UNIX for Dummies Questions & Answers

Printing in Bold

Hi, How do I print some shell variable in BOLD/ Thanks for any suggestions, Preeti (10 Replies)
Discussion started by: preetikate
10 Replies

9. Shell Programming and Scripting

Bold the paragraph

Hi, I have a file with multiple paragraph. I want to look for some word and make that paragraph bold. How can I do that? Thanks, Karthik (3 Replies)
Discussion started by: caprikar
3 Replies

10. UNIX for Dummies Questions & Answers

Bold Text?

Hello, On the linux box I use at work, the directories are bold type to distinguish them. Is there a way to make certain words in a text file bold? Thanks! (4 Replies)
Discussion started by: Atama
4 Replies
Login or Register to Ask a Question