Sponsored Content
Top Forums Shell Programming and Scripting Create Multiple UNIX Files for Multiple SQL Rows output Post 302881825 by Rahul_Bhasin on Thursday 2nd of January 2014 04:53:52 AM
Old 01-02-2014
The output file is filled with only the first line of each row. Remaining lines are not filled in the file.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Read multiple log files and create output file and put the result

OS : Linux 2.6.9-67 - Red Hat Enterprise Linux ES release 4 Looking for a script that reads the following log files that gets generated everynight between 2 - 5am Master_App_20090717.log Master_App1_20090717.log Master_App2_20090717.log Master_App3_20090717.log... (2 Replies)
Discussion started by: aavam
2 Replies

2. Shell Programming and Scripting

extract multiple cloumns from multiple files; skip rows and include filenames; awk

Hello, I am trying to write a bash shell script that does the following: 1.Finds all *.txt files within my directory of interest 2. reads each of the files (25 files) one by one (tab-delimited format and have the same data format) 3. skips the first 10 rows of the file 4. extracts and... (4 Replies)
Discussion started by: manishabh
4 Replies

3. Shell Programming and Scripting

Running multiple sql files in unix

In c:/zaheer/123-456/sql/ folder i have below 7 sql files. cv_abc_a.sql cv_abc_b.sql cv_abc_c.sql vtemp_d.sql vtemp_e.sql cv_abc_f.sql Exviews.sql In Exviews.sql file i have mentioned all cv and vtemp files to run like start ${SQLDIR}/cv_abc_a.sql start ${SQLDIR}/cv_abc_b.sql... (1 Reply)
Discussion started by: Zaheer.mic
1 Replies

4. Shell Programming and Scripting

sql output from multiple rows and columns as variables in a script

This is for an Oracle journal import. I was using a pl/sql package and oracle API's. Oracle added invoker rights to their API's and now my package won't run. I didn't want to use their API's anyway. The only reason i was using pl/sql and the API's (just a package) was to utilize a cursor. How... (2 Replies)
Discussion started by: lmu
2 Replies

5. UNIX for Dummies Questions & Answers

Using AWK: Extract data from multiple files and output to multiple new files

Hi, I'd like to process multiple files. For example: file1.txt file2.txt file3.txt Each file contains several lines of data. I want to extract a piece of data and output it to a new file. file1.txt ----> newfile1.txt file2.txt ----> newfile2.txt file3.txt ----> newfile3.txt Here is... (3 Replies)
Discussion started by: Liverpaul09
3 Replies

6. UNIX for Dummies Questions & Answers

awk to match multiple regex and create separate output files

Howdy Folks, I have a list that looks like this: (file2.txt) AAA BBB CCC DDD and there are 24 of these short words. I am matching these patterns to another file with 755795 lines (file1.txt). I have this code for matching: awk -v f2=file2.txt ' BEGIN { while(... (2 Replies)
Discussion started by: heecha
2 Replies

7. Shell Programming and Scripting

awk, multiple files input and multiple files output

Hi! I'm new in awk and I need some help. I have a folder with a lot of files and I need that awk do something in each file and print a new file with the output. The input file name should be modified when I print the outpu files. Thanks in advance for help! :-) ciao (5 Replies)
Discussion started by: gabrysfe
5 Replies

8. Shell Programming and Scripting

Retrieve multiple rows from mysql and automatically create a table

Hi, i want to create a table automatically based on another table (sms_key). For example; If user create a new row with sms_keyword field: IRC then a table created automatically (with some field on it, like: name, ph_number, messages). select * from sms_key; +-------------+ |... (1 Reply)
Discussion started by: jazzyzha
1 Replies

9. Shell Programming and Scripting

Storing multiple sql queries output into variable by running sql command only once

Hi All, I want to run multiple sql queries and store the data in variable but i want to use sql command only once. Is there a way without running sql command twice and storing.Please advise. Eg : Select 'Query 1 output' from dual; Select 'Query 2 output' from dual; I want to... (3 Replies)
Discussion started by: Rokkesh
3 Replies

10. Shell Programming and Scripting

Execute multiple files in multiple folders and also output on same folder

How to execute multiple files in multiple folders and also output to be generated in the same folder? Hello Team, I have a path like Sanity_test/*/* and it has around 100+ folders inside with files. I would like to run/execute those files and output of execution to be placed on same /... (1 Reply)
Discussion started by: pushpabuzz
1 Replies
FAX2TIFF(1)						      General Commands Manual						       FAX2TIFF(1)

NAME
fax2tiff - create a TIFF Class F fax file from raw fax data SYNOPSIS
fax2tiff [ options ] [ -o output.tif ] input.g3 DESCRIPTION
Fax2tiff creates a TIFF file containing CCITT Group 3 or Group 4 encoded data from one or more files containing ``raw'' Group 3 encoded data (typically obtained directly from a fax modem). By default, each row of data in the resultant TIFF file is 2-dimensionally encoded and padded or truncated to 1728 pixels, as needed. The resultant image is a set of low resolution (98 lines/inch) or medium resolution (196 lines/inch) pages, each of which is a single strip of data. The generated file conforms to the TIFF Class F (FAX) specification for storing facsimile data. This means, in particular, that each page of the data does not include the trailing return to control (RTC) code; as required for transmission by the CCITT Group 3 specifications. The old, ``classic'', format is created if the -c option is used. (The Class F format can also be requested with the -f option.) The default name of the output image is fax.tif; this can be changed with the -o option. Each input file is assumed to be a separate page of facsimile data from the same document. The order in which input files are specified on the command line is the order in which the resultant pages appear in the output file. OPTIONS
Options that affect the interpretation of input data are: -2 Assume input data is 2-d Huffman encoded. -B Assume input data was encoded with black as 0 and white as 1. -L Treat input data as having bits filled from least significant bit (LSB) to most significant bit (MSB). (This is the default.) -M Treat input data as having bits filled from most significant bit (MSB) to most least bit (LSB). -R Specify the vertical resolution, in lines/inch, of the input images. By default input are assumed to have a vertical resolution of 196 lines/inch. If images are low resolution facsimile, a value of 98 lines/inch should be specified. -W Assume input data was encoded with black as 1 and white as 0. (This is the default.) Options that affect the output file format are: -1 Force output to be compressed with the 1-dimensional version of the CCITT Group 3 Huffman encoding algorithm. -4 Force output to be compressed with the CCITT Group 4 Huffman encoding. -o Specify the name of the output file. -p Force the last bit of each End Of Line (EOL) code to land on a byte boundary. This ``zero padding'' will be reflected in the con- tents of the Group3Options tag of the resultant TIFF file. -s Stretch the input image vertically by writing each input row of data twice to the output file. -v Force fax2tiff to print the number of rows of data it retrieved from the input file. DIAGNOSTICS
The following warnings and errors come from the decoding routines in the library. Warning, %s: Premature EOL at scanline %d (x %d). . The input data had a row that was shorter than the expected value of 1728. The row is padded with white. %s: Premature EOF at scanline %d (x %d). . The decoder ran out of data in the middle of a scanline. The resultant row is padded with white. %s: Bad code word at row %d, x %d . An invalid Group 3 code was encountered while decoding the input file. The row number and horizontal position is given. The remainder of the input row is discarded, while the corresponding output row is padded with white. %s: Bad 2D code word at scanline %d. . An invalid Group 4 or 2D Group 3 code was encountered while decoding the input file. The row num- ber and horizontal position is given. The remainder of the input row is discarded, while the corresponding output row is padded with white. BUGS
Should not have the constant width 1728 built into it. Input data are assumed to have a a ``top left'' orientation; it should be possible to override this assumption from the command line. SEE ALSO
CCITT Recommendation T.4 (Standardization of Group 3 Facsimile Apparatus for Document Transmission). The Spirit of TIFF Class F, an appendix to the TIFF 5.0 specification prepared by Cygnet Technologies. tiffinfo(1), tiffdither(1), tiffgt(1), libtiff(3). September 24, 1994 FAX2TIFF(1)
All times are GMT -4. The time now is 07:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy