Sponsored Content
Top Forums UNIX for Dummies Questions & Answers command line util to convert mm to inches etc? Post 302503824 by koodawg on Friday 11th of March 2011 10:08:42 PM
Old 03-11-2011
Well that perl module doesn't get anywhere close to what I'm after.

"units" is what I was after;

# sudo apt-get install units



or


# yum install units
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

C shell script to convert from inches to meters and centimetres

Write a C shell script "in2ftcm" which uses arithmetic expansion to convert from inches to meters and centimetres, rounded down to the nearest whole number of centimetres. Input should be a whole number of inches, and you may assume. Explain your algorithm to determine the inches from the... (2 Replies)
Discussion started by: Ringo
2 Replies

2. Shell Programming and Scripting

execute command multithreaded util without programming

Hello all is there any way in unix to execute command in multithreaded way without doing it in java or cpp can one of the scripts handle multithread execution ? i need to test server requests ( corba ) in multithread Thanks (0 Replies)
Discussion started by: umen
0 Replies

3. HP-UX

glance => network util variable?

Hi, I'm creating a preventive maintenance script (automated) and I would like to get the cpu, mem, disk & network stats which you get when running glance as an output of a command so I can use it in my script I made some progress though: this is the command I use glance -aos... (5 Replies)
Discussion started by: berre
5 Replies

4. Shell Programming and Scripting

convert fields on each line to one line

Hello, I have a text file with the following fields: RecordNumber Name Email Date Notes Confirmed MailingList The problem is that each field is on a separate line. These seven fields repeat for the length of the file. What I want to do is to have a bash script or similar unitil EOF... (6 Replies)
Discussion started by: vestport
6 Replies

5. Shell Programming and Scripting

convert single line output to multiple line

Hi all, I have a single line output like below echo $ips 10.26.208.28 10.26.208.26 10.26.208.27 want to convert above single line output as below format. Pls advice how to do ? 10.26.208.28 10.26.208.26 10.26.208.27 Regards Kannan (6 Replies)
Discussion started by: kamauv234
6 Replies

6. Shell Programming and Scripting

how to convert this script in command line?

im trying to use this shellscript in one command line, but isnt working. shellscript: SERVER=ftp.site.com USER=Foo PASSW=3122 ftp -v -n $SERVER <<END_OF_SESSION user $USER $PASSW $FILETYPE lcd /home/foo/mywebsite mput * mput *.* bye END_OF_SESSION Im trying a lot of... (7 Replies)
Discussion started by: fbs777
7 Replies

7. Shell Programming and Scripting

Search several string and convert into a single line for each search string using awk command AIX?.

I need to search the file using strings "Request Type" , " Request Method" , "Response Type" and by using result set find the xml tags and convert into a single line?. below are the scenarios. Cat test Nov 10, 2012 5:17:53 AM INFO: Request Type Line 1.... (5 Replies)
Discussion started by: laknar
5 Replies

8. Shell Programming and Scripting

Repeat line convert upper line

HI Guys, My Input :- R3 AV44 50 0 100 100 100 R3 AV44 1 0 100 100 100 R3 AV45 50 0 100 100 100 R3 AV45 0 3 100 100 100 R3 AV45S 50 0 100 100 100 R3 AV45S 0 4 100 100 100 Output :- R3 AV44 50 0 100 100 100 1 0 100 100 100 R3 AV45 50 0 100 100 100 0 3 100 100 100 R3 AV45S 50 0... (9 Replies)
Discussion started by: pareshkp
9 Replies

9. Shell Programming and Scripting

Grep util last occurrence

I have file contents /tmp/x/abc.txt /home/bin/backup/sys/a.log I need this output: /tmp/x/ /home/bin/backup/sys/ Can somebody please help me out Please use CODE tags as required by forum rules! (3 Replies)
Discussion started by: jhonnyrip
3 Replies
fax2ps(1)							   User Commands							 fax2ps(1)

NAME
fax2ps - convert a TIFF facsimile to compressed PostScript SYNOPSIS
fax2ps [options] [file] DESCRIPTION
fax2ps reads one or more TIFF facsimile image files and prints a compressed form of PostScript that is suitable for printing on the stan- dard output. OPTIONS
The following options are supported: -H height Use height as the height, in inches, of the output page. The default page height is 11 inches. -p number Print only the indicated page. To print multiple pages, specify this option as often as required. -S Scale each page of image data to fill the output page dimensions. By default, images are presented according to the dimen- sion information recorded in the TIFF file. -W width Use width as the width, in inches, of the output page. The default page width is 8.5 inches. -x resolution Use resolution as the horizontal resolution, in dots per inch, of the image data. By default, this value is taken from the file. -y resolution Use resolution as the vertical resolution, in lines per inch, of the image data. By default, this value is taken from the file. OPERANDS
The following operands are supported: file The name of the TIFF facsimile image file to be converted to compressed PostScript. EXTENDED DESCRIPTION
By default, each page is scaled to reflect the image dimensions and resolutions stored in the file. The -x and -y options can be used to specify the horizontal and vertical image resolutions, respectively. If the -S option is specified, each page is scaled to fill an output page. The default output page is 8.5 by 11 inches. Alternate page dimensions can be specified in inches with the -W and -H options. By default, fax2ps generates PostScript for all pages in the file. You can use the -p option to select one or more pages from a multipage document. fax2ps generates a compressed form of PostScript that is optimized for sending pages of text to a PostScript printer attached to a host through a low-speed link such as a serial line. Each output page is filled with white and then only the black areas are drawn. The Post- Script specification of the black drawing operations is optimized by using a special font that encodes the move-draw operations required to fill the black regions on the page. This compression scheme typically results in a substantially reduced PostScript description, relative to the straightforward imaging of the page with a PostScript image operator. This algorithm can, however, be ineffective for continuous- tone and white-on-black images. For these images, it sometimes is more efficient to send the raster bitmap image directly, see tiff2ps(1). If the destination printer supports PostScript Level II, it is always faster to just send the encoded bitmap generated by the tiff2ps(1) command. Diagnostics Some messages about malformed TIFF images come from the TIFF library. Various messages about badly formatted facsimile images may be generated due to transmission errors in received facsimile. fax2ps attempts to recover from such data errors by resynchronizing decoding at the end of the current scanline. This can result in long horizontal black lines in the resultant PostScript image. EXAMPLES
Example 1: Converting the Tiff File test.tif to Compressed PostScript example% fax2ps test.tif ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWTiff | +-----------------------------+-----------------------------+ |Interface stability |Uncommitted | +-----------------------------+-----------------------------+ SEE ALSO
tiff2ps(1), libtiff(3) NOTES
Updated by Breda McColgan, Sun Microsystems Inc., 2004. SunOS 5.11 26 Mar 2004 fax2ps(1)
All times are GMT -4. The time now is 07:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy