Sponsored Content
Top Forums UNIX for Dummies Questions & Answers command line util to convert mm to inches etc? Post 302503755 by koodawg on Friday 11th of March 2011 01:38:05 PM
Old 03-11-2011
Yeah, I am aware that I can lookup the conversion ratios and manually calculate with a calculator. That's not what I was looking for. Let me clarify. What I am looking for is a conversion utility that has many conversions built into it for converting mm to inches, miles to km, liters to quarts etc. etc. etc. Thanks.
 

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
pnm2ppa(5 Feb 2000)													       pnm2ppa(5 Feb 2000)

NAME
pbm2ppa - convert portable bitmap (PBM) to HP's Printing Performance Architecture (PPA) file format SYNOPSIS
pbm2ppa [options] [ <infile] > [ <outfile]> ] ] DESCRIPTION
Reads portable bitmap (PBM) format as input. Outputs a stream suitable for processing by Hewlett-Packard's range of Printing Performance Architecture (PPA) printers. pnm2ppa supports the HP 710c, 712c, 720c, 722c, 820c, and 1000c series printers. (Portable bitmap (PBM) format output can be produced from PostScript(tm) input by the GhostScript driver "pbmraw".) OPTIONS
infile Input file infile is either a path to a file or device, or '-' to indicate stdin (defaults to stdin) outfile Output file outfile is either a path to a file or device, or '-' to indicate stdout (defaults to stdout) -b bottommargin Sets the bottom margin bottommargin in units of 1/600 inches (e.g., -b 150 = 0.25") -d Displays the current configuration -f configfile Overrides reading the configuration from /etc/pnm2ppa.conf, and uses configfile instead. -h Displays program usage -l leftmargin Sets the left margin leftmargin in units of 1/600 inches (e.g., -l 150 = 0.25") -r rightmargin Sets the right margin rightmargin in units of 1/600 inches (e.g., -r 150 = 0.25") -s papersize Sets the paper size. Possible values for papersize are a4 (A4), letter or us (US Letter, 8.5"x11"), and legal (US Legal, 8.5"x14"). The default is US Letter. -t topmargin Sets the top margin topmargin in units of 1/600 inches (ie -t 150 = 0.25") -v printertype Selects the printer model. Possible values of printertype are: 710, 712, 720, 722, 820 and 1000. The default is the HP DeskJet 7X0 Series (710, 712, 720, 722). -x xoffset Sets the x-offset xoffset from the left of the page. Units are 1/600 inches -y yoffset Sets the y-offset yoffset from the top of the page. Units are 1/600 inches NOTES
The configuration file is read in first. Command line arguments then modify the resulting definitions. The -x and -y options accumulate. The -v option resets all definitions back to an inbuilt default for that printer and should be used before subsequent -b -l -r, -t, -x, and -y arguments. SEE ALSO
pbm(5) FILES
/etc/pbm2ppa.conf Default configuration file AUTHOR
This code is licensed under the GNU Public License version 2. See LICENSE for details. (c) 1998 Tim Norman HISTORY
This program was written by Tim Norman. It originally supported black and white output on the 820 series. This program is almost obsolete; its successor pnm2ppa will support color printing. BUGS
This is a stable driver, but does not support color printing. pnm2ppa(5 Feb 2000)
All times are GMT -4. The time now is 03:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy