Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help with formating when using mailx Post 302650193 by RB26DETT on Friday 1st of June 2012 07:27:39 PM
Old 06-01-2012
Help with formating when using mailx

Hi I am a newbie here. I tried searching for the solution but I guess I either didn't find it or there hasn't been one posted.

my problem is I spooled the results of a query into a .txt file. When I cat the file the formating looks great. All the columns are aligned. However once I mailx the file to myself the formating is off. I tried playing with the set values in the query to compensate but mailx just seems to screw it up. How can I mail the results to myself with the formating still intact?

The spooling in the query is a simple
Code:
SPOOL ${BASE_DIR}/Report_${DATESTAMP}.txt;

I'm just using a simple
Code:
mailx -s "Subject" email < Report_${DATESTAMP}.txt


Last edited by methyl; 06-02-2012 at 05:05 PM.. Reason: please use code tags
 

10 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Formating mailx text file for Lotus Notes users

We use AIX mailx or sendmail. How can I format a text file so that lotus notes users can see diferent fonts and highlighting. Or can a gif file (company logo..) be sent along with a text file and the Lotus notes user would see the logo and text displayed at the same time and not as an attachment? (0 Replies)
Discussion started by: lidoiwo
0 Replies

2. UNIX for Dummies Questions & Answers

mailx error message : mailx: NUL changed to @

If I use the "Mail" link instead of the "mail" link to ../mailx I get this error. Mail so-n-so @whatever.com mailx: NUL changed to @ Unknown command: "postmaster" The email still goes through but i get the error. If I use "mail" it goes thru without the error. Any ideas?? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

3. Shell Programming and Scripting

formating date

Guys I have a date value like this in a table -> 2006-12-29 12:57:08(data type varchar2(25)) I am trying to subtract this column from sysdate. I am unable to do that. can u guys suggest me a way to do this.. (2 Replies)
Discussion started by: ragha81
2 Replies

4. Shell Programming and Scripting

Output formating

Dear All I am stuck in one problem. Kindly help me. I am taking below mention file as input file and want some op file as mention below. Kindly send me all possible suggestion and query. Thnaks Jaydeep bELOW IS THE INPUT FILE: *** Connected to BSCANGR ***... (1 Reply)
Discussion started by: jaydeep_sadaria
1 Replies

5. Shell Programming and Scripting

formating output

Hi all, I want to start a new topic on this matter I have this script, #!perl use strict; use warnings; use Data::Dumper; open my $log, '>', 'log-external.txt' or die "Could not open log: $!"; print $log "Subnet,Static,DHCP,Unused\n"; open my $dump, '>', 'dump.log' or die... (2 Replies)
Discussion started by: richsark
2 Replies

6. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

7. Shell Programming and Scripting

Formating output

Hello Team i have a file with following data (as columns). I need implement a syntax like below for altering table ALTER TABLE1 TABLENAME ADD COLUMN COL1 CHAR(5) NOT NULL WITH DEFAULT ADD COLUMN COL2 CHAR(5) .. .. ADD COLUMN COLn CHAR(5) NOT NULL... (1 Reply)
Discussion started by: rocking77
1 Replies

8. Shell Programming and Scripting

Formating questions

Hi, I have a data as follows in some files, i want to change CHAR(2-20) to VARCHAR(2-20). I should not touch any line with CHAR(1) Example: Input: cur_rev_stage_cd CHAR(5) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL, prev_rev_stage_cd CHAR(5) CHARACTER SET LATIN NOT... (7 Replies)
Discussion started by: srikanth38
7 Replies

9. UNIX for Beginners Questions & Answers

File formating help

Hi all, I am having the file below I need that as below Thanks, Arun (12 Replies)
Discussion started by: arunkumar_mca
12 Replies

10. Shell Programming and Scripting

File formating

I need to create a fixed width file based on the column lengths. lets assume I have six(this may be dynamic) fields each are of different length column1=6 #size of the column column2=3 column3=2 column4=3 column5=4 column6=5 I tried below code snippet but it is not working echo... (4 Replies)
Discussion started by: gvkumar25
4 Replies
PARSEWIKI(1)							   User Commands						      PARSEWIKI(1)

NAME
parsewiki - transform marked text into HTML, XHTML, Docbook or LaTeX SYNOPSIS
parsewiki [OPTION]... [FILE] DESCRIPTION
This manual page documents briefly the parsewiki command. This manual page was written for the Debian distribution because the original program does not have a manual page. parsewiki is a program that transform a text file with a very minimal Wiki style syntax into other formats, including HTML, XHTML, Docbook and LaTeX. See the file /usr/share/doc/parsewiki/doc/manual-en.txt for a description of the parsewiki syntax. OPTIONS
-f, --format=FORMAT Output format; one of html, xhtml, docbook, latex. (default html) -T, --title=TITLE Title. -t, --template=FILE File with a template to use instead of the standard. -c, --copyright Display copyright and copying permission statement. -h, --help Show this usage summary. FILE is a simple text file with wiki formating syntax. The result will be sent to the Standard Output. If FILE is not given, input will be taken from the Standard Input. EXAMPLES
$ parsewiki myfile.wiki $ cat file.txt | parsewiki -fdocbook --title="An Example" > file.xml BUGS
Report bugs to <villate@gnu.org>. AUTHOR
This manual page was written by Sergio Talens-Oliag <sto@debian.org>, for the Debian project (but may be used by others). parsewiki 0.4.3 July 2003 PARSEWIKI(1)
All times are GMT -4. The time now is 06:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy