HOW TO HIGHLIGHT FIRST LINE IN FILE?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting HOW TO HIGHLIGHT FIRST LINE IN FILE?
# 1  
Old 10-31-2014
HOW TO HIGHLIGHT FIRST LINE IN FILE?

Hi

I have a file as below

Code:
Merchandise
hfdlshaflkdahfdsafhdahfdafhf
aldfhdafjadjfsdjfdsjflsjdfjsfjfjs
jfahfadhfahdfahfahfahfadhfad

Requiremnt:

I need to Highlight first line of the file in Bold letters/With Colors and font size change is it possible?

Last edited by Don Cragun; 10-31-2014 at 09:38 PM.. Reason: Add CODE tags.
# 2  
Old 10-31-2014
What will be used to display your file?
# 3  
Old 10-31-2014
I want to send it to my outlook email.

here is my OS version.

Linux 2.6.18-308.4.1.el5 #1 SMP Wed Mar 28 01:54:56 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux

---------- Post updated at 09:20 PM ---------- Previous update was at 08:50 PM ----------

Code:
can anyone help me on this

# 4  
Old 11-01-2014
Yes, it is possible. Sed could match the first the letter, "M" and any other characters after it and quit matching after the first line and wrap the wanted html tags around the match. This may not be what you want as your question is too simple that I expect there many solutions to your issue too extensive to guess which is the best one. In the future keep in mind that if it is "text" then there are no foreseeable limitations to it being manipulated.
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Highlight text in shell o/p

Hi All, Can anyone tell me how to highlight a particular text in shell output or formattting a text in shell ? (1 Reply)
Discussion started by: prasanna2166
1 Replies

2. HP-UX

How to highlight syntax in Hp-UX vi editor?

Hi , How do i highlight syntax in vi editor on HP-UX. any suggestion highly appreciated. -Ashok (1 Reply)
Discussion started by: ashokd001
1 Replies

3. Solaris

Syntax Highlight editor

Is there is any syntax highlithing editor available for C and C++ programming language in Solaris. (7 Replies)
Discussion started by: arun.viswanath
7 Replies

4. UNIX for Dummies Questions & Answers

vim font highlight

Hi, there. I am using vim to edit some files I am working on from terminal. I occasionally pressed some keys by mistake, and the word just got highlight. Afterward whenever I type in that word, it will be highlight automatically. It is annoying. Could someone tell me how to turn this off? BTW,... (6 Replies)
Discussion started by: HOUSCOUS
6 Replies
Login or Register to Ask a Question