Sponsored Content
Full Discussion: Request for Formatted Output
Top Forums UNIX for Dummies Questions & Answers Request for Formatted Output Post 302470304 by Ariean on Tuesday 9th of November 2010 05:27:21 PM
Old 11-09-2010
Request for Formatted Output

Quote:
DEALER: I / Account1
TOTALS: 322 12,212,070,868.36 332 11,836,511,638.97

DEALER: II / Account2
TOTALS: 5 21,063,041.44 1 7,015.03

DEALER: III / Account3
TOTALS: 52 51,694,236.07 42 46,509,026.00

DEALER: IV / Account4
TOTALS: 35 575,251,000.01 25 98,638,138.76

DEALER: V / Account5
TOTALS: 13 0.00 7 34,006,318.43

DEALER: VI / Account6
GRAND TOTALS: 427 12,860,079,145.88 407 12,015,672,137.19
Can you please tell me how to just get only the output of dealers I & V information along with their subtotals in the next line of the file and create a new file, The dealer position along with corresponding totals may change everyday to any position above or below in the file, please help Thanks

Last edited by Ariean; 11-09-2010 at 11:10 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Formatted output in KSH

Hi, Is there some way to get formatted output in ksh? Something like a properly alligned tabular format. I tried adding '\t' to echo statements, but it doesn't come properly alligned 'hello' A simple Hello 'helloworld' A helloworld statement I need the second coloumn to... (1 Reply)
Discussion started by: psynaps3
1 Replies

2. Shell Programming and Scripting

formatted output with commas

var=12345 echo $var >>>12345 printf "%8.1f \n" $var >>> 12345.0 How to get this as 12,345? I suppose I could break into sections by dividing by 1000 or 1000000. But, is the a trick to this? (4 Replies)
Discussion started by: joeyg
4 Replies

3. Shell Programming and Scripting

Formatted output - awk

Hi I have the following records in a file SABN YOURTUBE 000514 7256 SACN XYOUDSDF 000514 7356 SADN KEHLHRSER 000514 7656 SAEN YOURTUBE 000514 7156 SAFN YOURTUBE 000514 7056 I need to put this in the format like this printf '%s %-50s %6s %-6s\n' I am not going to read individual... (3 Replies)
Discussion started by: dhanamurthy
3 Replies

4. Shell Programming and Scripting

Formatted Output

Hi I have the following lines in a file SWPRC000001NOT STATED 1344 SWPRC000001NOT STATED 1362 SWPRC000001NOT STATED 1418 SWPRC000001NOT STATED 1436 SWPRC000001NOT STATED ... (6 Replies)
Discussion started by: dhanamurthy
6 Replies

5. Shell Programming and Scripting

cut - columns with formatted Output

Hi I have the input file as below ***TEST10067 00567GROSZ 099 00567CTCTSDS90 ***TEST20081 08233GROZWEWE 00782GWERW899 ***TEST30088 08233GROZWEWE 00782GWERW899 I am finding the lines starting with *** and outputing as below TEST10067 TEST20081 TEST30088 I need a space between TEST1... (9 Replies)
Discussion started by: dhanamurthy
9 Replies

6. Shell Programming and Scripting

mailing customized and formatted ls -lt command output

I'm trying to write a script to email the output of 'ls -lt' command that are 30 days old along with headers for eg. like owner, date, timestamp and a portion of some special character files like 'slfpay$/#:032508AA' in /home/test directory, I just want the numbers from the last field ($9), also... (3 Replies)
Discussion started by: mbak
3 Replies

7. Shell Programming and Scripting

Formatted output of shell script

Hello, I am working on one script which is giving output as a pipe "|" separated abcd | efgh | 20090745 abcdefgh | efg | 20090622 Can any one please help me i want it to be formatted as pipe will be aligned, or the output looks like a table. (2 Replies)
Discussion started by: vikash_k
2 Replies

8. Shell Programming and Scripting

output - tab formatted - awk

Dear All, Good Day. I would like to hear your suggestions for the following problem: I have a file with 5 columns with some numbers in 16 lines as shown below. Input file: Col 1 Col 2 Col 3 Col 4 Col 5 12 220 2 121 20 234 30 22 9... (3 Replies)
Discussion started by: Fredrick
3 Replies

9. Programming

Formatted output in PERL

Hi Techies, I'm a newbie to PERL, Please help me with following problem. I have an input text file like below cat Input.txt 418673132,P 492538858,P 384535478,P 521522357,I 529435679,I 183617024,P 184414408,I 735510689,P 736238343,I 411642045,I 412690979,I 104232783,I (2 Replies)
Discussion started by: mahi_mayu069
2 Replies

10. Shell Programming and Scripting

Shell Script for formatted output

06/26/2017 23:40:40 CAUAJM_I_10082 06/26/2017 23:40:40 CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: STARTING JOB: IOALPPRXXBD_ALPGLGENFAALL MACHINE: aspsun14 06/26/2017 23:40:42 CAUAJM_I_40245 EVENT: CHANGE_STATUS STATUS: RUNNING JOB:... (10 Replies)
Discussion started by: Sandeep Behera
10 Replies
DEALER(6)							User Documentation							 DEALER(6)

NAME
dealer - bridge hand generator SYNOPSIS
dealer [-023ehuvmqV] [-p n] [-g n] [-s seed] [-l n] [inputfile] DESCRIPTION AND EXAMPLE
The program dealer can be used to generate hands for partnerships bidding training or for generating statistics that can be used to design conventions, or win postmortems. Running the program involves 3 steps. First, the user has to write an input file containing hand-descriptions and action. A very simple example would look something like: condition shape(north, any 4333 + any 4423) and hcp(north)>=19 action printall The first line specifies a condition for the north hand, in this case, a hand with 4333 or 4432 shape and at least 19 high card points. The second line tells the program to print the 4 hands. The program reads from standard input, so in principle, it is possible to enter the conditions directly into the program. Using a file is a lot more practical though, as it allows the user to re-use conditions and fine-tune the conditions. Then the program has to be run, it reads the file, looks at the various command line switches and then produces a number of hands. The output appears on the screen but can be re-directed to a file. Finally, the user has to look at output and analyze the produced hands. Alternatively, the output can be used for a playing program. OPTIONS
-e Exhaust mode (alpha version). -g number Maximum number of hands to generate (default is 1000000). -l number Instead of shuffling, deals are read from the file library.dat by M. Ginsberg (see [1]). When using this, the tricks() function is quite fast and bridge.exe from GIB is not used. [1] ftp://ftp.cirl.uoregon.edu/pub/users/ginsberg/bridge/ -m Shows a progress meter. -p number Maximum number of hands to produce (default is 40). -q Suppress PBN output (useful for testing, then switch it back on when generating the "final" sample). -s number Uses number as the seed for the random generator, running the program twice with the same seed will produce the same sequence of hands. -u Select uppercase for the symbols "AKQJT" (default is lowercase). -v Toggle verbose output, prints statistics at the end of the run (default is on). -V Emit a version-identification string and exit. -h Help, prints the syntax. -0 No swapping, each deal is generated normally (shuffling) (default). -2 2-way swapping, after each shuffle another deal is generated by permuting E and W, leaving N and S in place (NB: not fully compatible with predeal). -3 3-way swapping, after each shuffle another 5 deals are generated by permuting E, W, and S every which way, leaving N in place (NB: not fully compatible with predeal). BUGS
I would prefer if you did not use this program for generating hands for tournaments. I have not investigated the random number generation closely enough for me to be comfortable with that thought. SEE ALSO
/usr/share/doc/dealer/Manual, dealer.dpp(6), deal(6). AUTHORS
Hans van Staveren <sater@sater.home.cs.vu.nl> Henk Uijterwaal <henk@ripe.net> Manpage: Christoph Berg <cb@df7cb.de> COPYRIGHT AND LICENSE
This program is hereby put in the public domain. Do with it whatever you want, but I would like you not to redistribute it in modified form without mentioning the fact of modification. I will accept bug reports and modification requests, without any obligation of course, but fixing bugs someone else put in is beyond me. Dealer 2012-03-04 DEALER(6)
All times are GMT -4. The time now is 12:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy