12-12-2013
Excel table like output with printf
Hi All;
I try to create a excel like table with headers and some fields containing values, other long and complex mathematic formulas.
I have some header like : Name Formula Value True/False
Under name column, they are some formula names, formula column some long mathematic formulas like:
Daily something somehting Percentage ≡ Total number of something - ∑4i=1(Total number of someother thingsi - total number of a different thingsi) .
And value field is a numeric field containing 2 long numbers (10 digit or so). I want to write them as 2 different lines in same field. (value field)
True/false column consists of value t/f. So this will be filled manually so should be null.
So what is the easiest way to write them as an excel like table? I tried some printf command but they are all exploded. Is there an easier way to do it?
Thanks
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
#include <stdio.h>
#include <math.h>
// this function calculates the volume of a Cylinder
int main(void)
{
int r; // radius
int h; // height
double M_PI; // pi
int pOne = pow (r, 2);
// get user input of radius and height
printf ("Enter your... (3 Replies)
Discussion started by: pwanda
3 Replies
2. Shell Programming and Scripting
Hello -
I have a below table and i want to extract the data into excel sheet and send to different location.
Here is the table structure...
SQL> desc t_i1_exportdocs
Name Null? Type
----------------------------------------- --------... (11 Replies)
Discussion started by: govindts
11 Replies
3. Shell Programming and Scripting
Hi All,
I need to convert the data from excel to database table in sybase. Please provide some sample script..
thanks,
Royal. (1 Reply)
Discussion started by: royal9482
1 Replies
4. Programming
Hi ,
I wonder if in java I can pipe the below output of the printf into a variable:
System.out.printf(" This is a test %s\n", myVariable);
I want to keep the output of the printf command to create my history array.
Thanks. (2 Replies)
Discussion started by: arizah
2 Replies
5. Shell Programming and Scripting
printf "%X\n" "A"
41
printf "%X\n" "2"
2
Expected 32 (not 2).
Is there a "printf" which will output the hexadecimal value of a numeric character? (9 Replies)
Discussion started by: methyl
9 Replies
6. Shell Programming and Scripting
Hi,
i have a script, which is incomplete, am on my way developing it.
Input
1,12,2012,IF_TB001
2,12,2012,3K3
3,Z56,00000,25,229,K900,00, ,3G3, ,USD, ,0000000000,000, , , , 550000000
3,Z56,00000,53,411,W225,00,000, , ,USD,OM170,0000000000,000, , , , -550000000
4,Z56,COUNT, 4,SUM LOC,... (19 Replies)
Discussion started by: selvankj
19 Replies
7. Shell Programming and Scripting
Hello script guru's
as i write more and more code i always block at managing output... either writing to standard out, writing to files via std out (log, temp file, etc). Don't get me wrong 99% of the time it DOES the job but maybe there is more efficient.
I'm writing a small script to... (2 Replies)
Discussion started by: maverick72
2 Replies
8. Shell Programming and Scripting
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
Discussion started by: dani1234
6 Replies
9. Programming
I have some records to be updated in oracle table. I am using sql developer tool. could any one tell me how to update those records in oracle table. I am having excel sheet with those records. (4 Replies)
Discussion started by: ramkumar15
4 Replies
10. Shell Programming and Scripting
#! /bin/ksh
#] && . ./.profile 2>/dev/null
if test -f '.profile'; then . ./.profile; fi;
#. .profile
LOG_DIR=/app/rpx/jobs/scripts/just/logs
sendEmail()
{
pzCType="$1"; pzTitle="$2"; pzMsg="$3"; pzFrom="$4"; pzTo="$5"; pzFiles="$6"; pzReplyTo="$7"
(
... (21 Replies)
Discussion started by: ankit.mca.aaidu
21 Replies
LEARN ABOUT REDHAT
psfxtable
PSFXTABLE(1) General Commands Manual PSFXTABLE(1)
NAME
psfxtable - handle Unicode character tables for console fonts
SYNOPSIS
psfxtable [-i infont] [-o outfont] [-it intable] [-ot outtable] [-nt]
DESCRIPTION
psfxtable handles the embedded Unicode character table for .psf format console fonts. It reads a font and possibly a table and writes a
font and/or a table. psfaddtable(1), psfgettable(1) and psfstriptable(1) are links to it.
Each of the filenames infont, outfont, intable, and outtable may be replaced by a single dash (-), in which case standard input or standard
output is used. If no -i option is given, the font is read from standard input. If no -it or -o or -ot option is given, no input table is
read or no output font or output table is written.
By default the output font (if any) will have a Unicode table when either the input font has one, or an explicit table (which overrides an
input font table) has been provided. The option -nt causes output of a font without table. When outfont is requested it will get a psf1
header when infont has a psf1 header and intable does not have sequences and a psf2 header otherwise.
SEE ALSO
setfont(8), psfaddtable(1), psfgettable(1), psfstriptable(1)
9 Dec 1999 PSFXTABLE(1)