Making Text Bold

Hi Guys,

This is my first query here. I hope you could help.

I have a file as below

a 1 2 3 4
b 4 5 6
...

I need to print the first column of this in bold.
a 1 2 3 4
b 4 5 6
Is it possible, if so, could you please let me know how to do that?
I require this because I need to send the file via mail. It should look like

Try this:

awk '$1="\033[40;37;1m"$1"\033[m"' file

If you want to use colors have a look at this post:

Technically you can only depend on email being raw text, no fonts, no bold, no nothing. But on clients that support it, you may be able to use HTML, so it'd be something like this:

<html><body><pre>
<b>a</b> 1 2 3 4
<b>b</b> 4 5 6
</pre></body></html>

...of course, on clients that don't support it, they'll see it tags and all.

cabrao's solution, using escape sequences, will work only in the shell, it'll show garbage or nothing in an email.

Oops, I didn't read the part saying that file would be sent by mail. In that case yes you need to use HTML, maybe something like this will help you:

awk '$1="<br><b>"$1"</b>"' file.txt > file.html