Sponsored Content
Top Forums Shell Programming and Scripting creating & sending formatted (with bolds & colors) CSV Post 302229256 by infaWorld on Tuesday 26th of August 2008 02:34:31 PM
Old 08-26-2008
creating & sending formatted (with bolds & colors) CSV

Hi ,

I have a situation.

Need is to create & send a formatted file with header in BOLD & colored & some sequel results as a content.

I know echo -e \033 command, but its scope is limited in PUTTY.

How to retain the formatting out of Putty; say after someone opens a email attachment of this output file then formatting should be there.

Hope I cleared my question. Looking for your assistance

Thanks
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

dirs & colors

hi @all question from an absolute beginner: I want directory listings to be displayed with different colors... what do I have to do and where can I find the settings? thx (4 Replies)
Discussion started by: tk876
4 Replies

2. Shell Programming and Scripting

Sending email with text & attachment using mailx

I spent some time working this out, with a little help from various forums, and thought the community would like to know : Here is how you can send an email from a single Unix command line : /usr/bin/echo "Email text\nNew line\nAnother new line" >x | uuencode sourcefile.txt sourcefile.txt |... (3 Replies)
Discussion started by: haryadoon
3 Replies

3. UNIX for Dummies Questions & Answers

.bashrc question re: rm -i & ls --colors

QUESTION #1: I have this in my .bashrc file: alias rm='rm -i' Problem is, there are 3 files that I remove many times a day and would like this command to ignore these 3 files. In other words, prompt me on everything EXCEPT these 3 files. Is this possible? QUESTION #2: Also in... (16 Replies)
Discussion started by: kthatch
16 Replies

4. Shell Programming and Scripting

PHP read large string & split in multidimensional arrays & assign fieldnames & write into MYSQL

Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP. I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies

5. Shell Programming and Scripting

replace & with & xml file

Hello All I have a xml file with many sets of records like this <mytag>mydata</mytag> <tag2>data&</tag2> also same file can be like this <mytag>mydata</mytag> <tag2>data&</tag2> <tag3>data2&amp;data3</tag3> Now i can grep & and replace with &amp; for whole file but it will replace all... (4 Replies)
Discussion started by: lokaish23
4 Replies

6. Shell Programming and Scripting

Replace & sign to &amp word

Hi, I have text file abc.txt. In this file, I have the following data. Input: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith & Mrs Smith Mr Smith& Mrs Smith Mr Smith &Mrs Smith Output: Mr Smith &amp Mrs Smith Mr Smith &apos Mrs Smith Mr Smith &amp Mrs Smith Mr Smith&amp... (4 Replies)
Discussion started by: naveed
4 Replies

7. Shell Programming and Scripting

Readin document & creating path

Need a way to read a file in who every line is a path to a directory and make shortcut to that directory on a specific place. Example: line in the document /media/gogo/6651-FEAB/Desktop/ /media/gogo/6651-FEAB/Desktop/alex/ /media/gogo/6651-FEAB/linux/ ... (3 Replies)
Discussion started by: gogok_bg
3 Replies

8. Shell Programming and Scripting

SEnding a process to backgorund (&) in here document

Trying to do the following ssh root@192.168.0.111 'bash -s' <<ENDSSH mkfifo a.pipe gzip -c < a.pipe > aa.gzip & ENDSSH it does not seems to be able to send the gzip process to background. (3 Replies)
Discussion started by: acelau
3 Replies

9. Shell Programming and Scripting

SFTP Shell Script Get & Delete && Upload & Delete

Hi All, Do you have any sample script, - auto get file from SFTP remote server and delete file in remove server after downloaded. - only download specify filename - auto upload file from local to SFTP remote server and delete local folder file after uploaded - only upload specify filename ... (3 Replies)
Discussion started by: weesiong
3 Replies
tbl(1)							      General Commands Manual							    tbl(1)

NAME
tbl - formats tables for nroff SYNOPSIS
tbl [file...] OPTIONS
Produces output without fractional line motions. You use this option when the destination output device or printer or post-filter cannot handle fractional line motions. Reads in ms macros prior to table formatting. Reads in the mm macros prior to table formatting, if your system has the *roff mm macros installed. DESCRIPTION
The tbl preprocessor is used for formatting tables for nroff. When you run tbl, the input files are copied to standard output, except for lines between the .TS (table start) and .TE (table end) command lines. All lines between the .TS and .TE command lines are assumed to describe a table and are reformatted. If no arguments are given, tbl reads from standard input, so it can be used as a filter. When tbl is used with neqn or other equation for- matting *roff tools, the tbl command should be invoked first to minimize the volume of data passed through the pipes. EXAMPLES
The following examples show tables that have been coded using tbl macros and the results after you run tbl to format the table. .TS tab(@); c s s c c s c c c l n n. Household Population Town@Households @Number@Size Bedminster@789@3.26 Bernards Twp.@3087@3.74 Bernardsville@2018@3.30 Bound Brook@3425@3.04 Branchburg@1644@3.49 Bridgewater@7897@3.81 Far Hills@240@3.19 .TE When formatted by tbl and then nroff, the output is as follows: Household Population Town Households Number Size Bedminster 789 3.26 Bernards Twp. 3087 3.74 Bernardsville 2018 3.30 Bound Brook 3425 3.04 Branchburg 1644 3.49 Bridgewater 7897 3.81 Far Hills 240 3.19 The following example shows how to specify column widths using the w column option. The width of a column must be large enough to contain it's anticipated data. Multiple line column entries are controlled by T{ and T}. .TS tab(@); cw(.5i) lw(1.2i) lw(3.0i). Return@Error@Description _ 0@@Successful completion. 1@ENOM@T{ Insufficient memory exists to create this object. Multiple lines can be written in text surrounded by T braces. T} 2@EINVAL@The value specified is invalid. .TE When formatted by tbl and then nroff, the output is as follows: Return Error Description _________________________________________________________________ 0 Successful completion. 1 ENOM Insufficient memory exists to create this object. Multiple lines can be written in text surrounded by T braces. 2 EINVAL The value specified is invalid. SEE ALSO
neqn(1), nroff(1), ms(5) tbl(1)
All times are GMT -4. The time now is 04:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy