Sponsored Content
Top Forums UNIX for Dummies Questions & Answers command line util to convert mm to inches etc? Post 302503753 by koodawg on Friday 11th of March 2011 01:22:12 PM
Old 03-11-2011
command line util to convert mm to inches etc?

There must be a command line utility to convert metric -> us, mm to inches etc, but I don't remember seeing it. Any suggestions? Anything in the repositories? Thx.
 

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
weatherrc(5)							File Formats Manual						      weatherrc(5)

NAME
weatherrc - configuration file format for the weather(1) utility DESCRIPTION
The weatherrc file format is intended to specify a set of aliases by which to group URIs for METAR station conditions and alert/forecast zones, but other command-line options and flags for the weather utility can be specified as well. The file is organized as an INI-format config, with the alias name in [] brackets and the associated parameter/value pairs on following lines. Parameters and their values are separated by = or : characters. Multi-word values do not need quoting. These parameters are supported... alert include local alert notices (possible values are False and True or 0 and 1) atypes list of alert notification types to display (ex: tornado_warning,urgent_weather_message) cache control all caching (possible values are False and True or 0 and 1) cache_data control retrieved data caching (possible values are False and True or 0 and 1) cache_search control search result caching (possible values are False and True or 0 and 1) cacheage duration in seconds to refresh cached data (ex: 900) cachedir directory for storing cached searches and data (ex: ~/.weather) conditions output current conditions (possible values are False and True or 0 and 1) defargs list of default command-line arguments (ex: avl,rdu) forecast include a local forecast (possible values are False and True or 0 and 1) headers list of conditions headers to display (ex: temperature,wind) imperial filter/convert conditions for US/UK units (possible values are False and True or 0 and 1) metric filter/convert conditions for metric units (possible values are False and True or 0 and 1) quiet skip preambles and don't indent (possible values are False and True or 0 and 1) setpath directory search path for correlation sets (ex: .:~/.weather) verbose show full decoded feeds (possible values are False and True or 0 and 1) EXAMPLES
The following is an example ~/.weather/weatherrc defining a couple aliases named home and work to be displayed when running the utility with no aliases specified... [default] defargs = home,work [home] description = Conditions and Forecast at Home forecast = True metar = http://weather.noaa.gov/pub/data/observations/metar/decoded/KRDU.TXT zone_forecast = http://weather.noaa.gov/pub/data/forecasts/zone/nc/ncz041.txt [work] description = Conditions at Work metar = http://weather.noaa.gov/pub/data/observations/metar/decoded/KGSO.TXT Now if weather is invoked by itself on the command line, it will output conditions for home and work, and also a forecast for home only. AUTHOR
Specification and manual written by Jeremy Stanley <fungi@yuggoth.org>. SEE ALSO
weather(1) 2.0 2012-06-24 weatherrc(5)
All times are GMT -4. The time now is 07:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy