Sponsored Content
Full Discussion: File formating question.
Top Forums Shell Programming and Scripting File formating question. Post 302242325 by Lakris on Wednesday 1st of October 2008 04:16:39 PM
Old 10-01-2008
You can even do it with a typewriter!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help required on file formating

I have two files file1 and file2 as shown below: file1: name nameabc bcd nameabcdefg file2: age age1111 age2345 age6743 I have pasted one file on the other with the delimiter "|" and the resulttant file is: name|age nameabc|age1111 bcd|age2345 nameabcdefg|age6743 (1 Reply)
Discussion started by: udiptya
1 Replies

2. Shell Programming and Scripting

file formating in Perl

Hi, I am new to unix , I have a requirement for formating the input file and generate the output file as per the downstream requirement .. My application receiving a text input file having 4 field and my application need to check each field and if some value of a field is blank ..then it need... (1 Reply)
Discussion started by: julirani
1 Replies

3. UNIX for Dummies Questions & Answers

File formating help needed.

I have a file called vm.cfg . content of file. acpi = 1 apic = 1 builder = 'hvm' How would i write a script which will add boot = 'd' at 3rd line. For example. after running the script the file should be like below. acpi = 1 apic = 1 boot = 'd' builder = 'hvm' I dont want to... (3 Replies)
Discussion started by: pinga123
3 Replies

4. Shell Programming and Scripting

File formating (sed command)

I am new ot unix. Is there one or two lines of command (sed may be) to format a file. My source is.. <tag1> <tag2> <datatag1> data1 </datatag1> <datatag2> data2 </datatag2> <datatag3> data3 </datatag3> <datatag4> data1 </datatag3> </tag2> </tag1> (2 Replies)
Discussion started by: reachsam11
2 Replies

5. Shell Programming and Scripting

Help in formating a txt file

Pls help in formatting a txt file using shell scripting Input file format: Name priya 2010-09-21 10:43:49 TEXT ID 1 hi TEXT ID 2 how TEXT ID 3 r TEXT ID 4 u Output required: name priya hi how r u (4 Replies)
Discussion started by: bha148
4 Replies

6. Emergency UNIX and Linux Support

Question on time and date formating..

can anyone one help me....to make date and time format...to following format for my file DATE TIME DD- MON- YEAR 24 Hours I have a need of format like this 12-Jan-2012 in one column, then time in 24 Hours in another column....please help...me... ... (4 Replies)
Discussion started by: nex_asp
4 Replies

7. UNIX for Beginners Questions & Answers

File formating with lines

Hi All, Need to modify a file basically join the extra line to one I am having a file like below And would like to make it as below . (4 Replies)
Discussion started by: arunkumar_mca
4 Replies

8. 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

9. 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

10. Shell Programming and Scripting

Help with ... Formating the file using awk

I have a file like below position1 0 7802 7802 0 client1 - - position1 8 8032 8032 0 client1 ... (7 Replies)
Discussion started by: manas_ranjan
7 Replies
fax2tiff(1)							   User Commands						       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 per inch) or medium resolution (196 lines per inch) pages, each of which is a single strip of data. OPTIONS
Input Data Options The following input data options are supported: -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 least significant bit (LSB). -R Specify the vertical resolution, in lines per inch, of the input images. By default, input images are assumed to have a vertical resolution of 196 lines per inch. If images are low resolution facsimile, specify a value of 98 lines per inch. -W Assume input data was encoded with black as 1 and white as 0. This is the default. Output File Options The following output file options are supported: -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" is 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 retrieved from the input file. OPERANDS
The following operands are supported: input.g3 The name of the input file that contains raw fax data. EXTENDED DESCRIPTION
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. You can use the -o option to change the output filename. 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. Diagnostics The following warnings and errors come from the decoding routines in the library. Warning, %s: Premature ETheainputndata had(a row.that was shorter than the expected value of 1728. The row is padded with white. %s: Premature EOF at scaThendecoder ran.out of data in the middle of a scanline. The resultant row is padded with white. %s: Bad code word at rowAnd,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 AnainvaliddGroup 4 or 2D 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. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWTiff | +-----------------------------+-----------------------------+ |Interface stability |Uncommitted | +-----------------------------+-----------------------------+ 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) NOTES
Updated by Breda McColgan, Sun Microsystems Inc., 2004. SunOS 5.11 26 Mar 2004 fax2tiff(1)
All times are GMT -4. The time now is 03:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy