Sponsored Content
Full Discussion: Cancel down 2 integers
Top Forums Shell Programming and Scripting Cancel down 2 integers Post 302587719 by jakunar on Thursday 5th of January 2012 05:53:13 PM
Old 01-05-2012
[Solved] 'Cancel down'/reduce 2 integers

Wonderful evening to all of you!

My problem has to possible starting points.
Well, not really, but getting to either one is no problem at all.
So i got either a string in the format of "1920x1080" or simply the integers X = 1920 and Y = 1080.

When I am done, I would like to have an output as the following "16x09" or at least X = 16 and Y = 9, which of course could be simply concatenated.

As I am fairly new to shell-scripting, I got no idea how to even begin, and neither google nor the search were of help to me..

Last edited by jakunar; 01-05-2012 at 10:31 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to cancel all printjobs at once?

Hi unix-friends, I've got an RS6000 with Unix 4.3 as OS. I'm writing a script that i want to use for cancelling all print jobs at once. Does anyone have any good idea's, hints, or tips? Hope to hear from you, Erik (3 Replies)
Discussion started by: Erik Rooijmans
3 Replies

2. UNIX for Advanced & Expert Users

cancel the massage

Hi all In Aix system Someone know i want to cancel the massage. if some user print something and user root deleting the job i got brodcast message " message from queueing system job number XXX has been deleteing from queue. <EOT> " I use the cancel command (1 Reply)
Discussion started by: goldfelda
1 Replies

3. UNIX for Dummies Questions & Answers

Cancel QCompile

I need help, please!!!!!!!! I have accidentally selected to compile all my programs, which will probably take forever!! How can I cancel the compiling of the programs. I see in qstatus the huge list of programs waiting to be compiled. Thanks! :eek: (1 Reply)
Discussion started by: itldp
1 Replies

4. Shell Programming and Scripting

integers in the if statement

hi, im trying to compare two variables in csh to put in an if statement, eg: set a = $firstnum set b = $secondnum if ($a -ge $b) echo $a But I get an error ("if: Expression syntax"). How can I make csh see my variables as integers? thanks in advance! (5 Replies)
Discussion started by: Deanne
5 Replies

5. Programming

Using write() with integers in C

I'm trying to write an integer to a file using the write() function, but write() requires the parameter to be written to be a const void*. How would I go about doing this? also: using itoa() produces a " warning: implicit declaration of function 'itoa' " even though i have #included stdlib.h (2 Replies)
Discussion started by: h@run
2 Replies

6. Post Here to Contact Site Administrators and Moderators

cancel account

id like to cancel my account please. thanks (5 Replies)
Discussion started by: samb057
5 Replies

7. Post Here to Contact Site Administrators and Moderators

Cancel Account

I accidentally typed a wrong user name... pls delete my account so that i can create a new one.. Thanks (4 Replies)
Discussion started by: Pat_Martin
4 Replies

8. UNIX for Dummies Questions & Answers

Cannot cancel a print

Hi Everyone, I am trying to cancel a print. I am logged on as the user of the print and when I use the command 'cancel print_job' I get the message 'print_job: not authorized' I have cancelled other prints in the queue, but this particular job in the queue cannot delete. I even logged on as... (5 Replies)
Discussion started by: Scarlet
5 Replies

9. Shell Programming and Scripting

Grep float/integers but skip some integers

Hi, I am working in bash in Mac OSX, I have following 'input.txt' file: <INFO> HypoTestTool: >>> Done running HypoTestInverter on the workspace combined <INFO> HypoTestTool: The computed upper limit is: 11 +/- 1.02651 <INFO> HypoTestTool: expected limit (median) 11 <INFO> HypoTestTool: ... (13 Replies)
Discussion started by: Asif Siddique
13 Replies

10. Shell Programming and Scripting

Comparing Integers (I think)

Hi, I can't figure out what I'm missing. I'm running a query to see if there are any streams recording on my DVR before starting a scripted update. I'm guessing that it is viewing $VIDEO as a string instead of an int. I've tried everything I saw on google but it still comes back as $VIDEO is... (8 Replies)
Discussion started by: Rhysers
8 Replies
xdr_simple(3N)															    xdr_simple(3N)

NAME
xdr_simple, xdr_bool, xdr_char, xdr_double, xdr_enum, xdr_float, xdr_free, xdr_hyper, xdr_int, xdr_long, xdr_longlong_t, xdr_quadruple, xdr_short, xdr_u_char, xdr_u_hyper, xdr_u_int, xdr_u_long, xdr_u_longlong_t, xdr_u_short, xdr_void - library routines for external data representation SYNOPSIS
DESCRIPTION
XDR library routines allow C programmers to describe simple data structures in a machine-independent fashion. Protocols such as remote procedure calls (RPC) use these routines to describe the format of the data. These routines require the creation of XDR streams (see xdr_create(3N)). Routines See rpc(3N) for the definition of the data structure. Note that any buffers passed to the XDR routines must be properly aligned. It is suggested that malloc(3C) be used to allocate these buffers or that the programmer insure that the buffer address is divisible evenly by four. translates between booleans (C integers) and their external representations. When encoding data, this filter produces values of either or This routine returns if it suc- ceeds, otherwise. translates between C characters and their external representations. This routine returns if it succeeds, otherwise. Note: encoded characters are not packed, and occupy 4 bytes each. For arrays of characters, it is worthwhile to consider or (see xdr_complex(3N)). translates between C precision numbers and their external representations. This routine returns if it succeeds, otherwise. translates between C (actually integers) and their external representations. This routine returns if it succeeds, otherwise. translates between C and their external representations. This routine returns if it succeeds, otherwise. Generic freeing routine. The first argument is the XDR routine for the object being freed. The second argument is a pointer to the object itself. Note: the pointer passed to this routine is not freed, but what it points to is freed (recursively, depending on the XDR routine). translates between ANSI C integers and their external representations. This routine returns if it succeeds, otherwise. translates between C integers and their external representations. This routine returns if it succeeds, otherwise. translates between C integers and their external representations. This routine returns if it succeeds, otherwise. translates between ANSI C integers and their external representations. This routine returns if it succeeds, otherwise. This routine is identical to translates between IEEE quadruple precision floating point numbers and their external representations. This routine returns if it succeeds, otherwise. translates between C integers and their external representations. This routine returns if it succeeds, otherwise. translates between C characters and their external representations. This routine returns if it succeeds, otherwise. translates between unsigned ANSI C integers and their external representations. This routine returns if it succeeds, otherwise. A filter primitive that translates between a C integer and its external representation. This routine returns if it succeeds, otherwise. translates between C integers and their external representations. This routine returns if it succeeds, otherwise. translates between unsigned ANSI C integers and their external representations. This routine returns if it succeeds, otherwise. This routine is identical to translates between C integers and their external representations. This routine returns if it succeeds, otherwise. This routine always returns It may be passed to RPC routines that require a function parameter, where nothing is to be done. MULTITHREAD USAGE
Thread Safe: Yes Cancel Safe: Yes Fork Safe: No Async-cancel Safe: No Async-signal Safe: No These functions can be called safely in a multithreaded environment. They may be cancellation points in that they call functions that are cancel points. In a multithreaded environment, these functions are not safe to be called by a child process after and before These functions should not be called by a multithreaded application that support asynchronous cancellation or asynchronous signals. SEE ALSO
malloc(3C), rpc(3N), xdr_admin(3N), xdr_complex(3N), xdr_create(3N). xdr_simple(3N)
All times are GMT -4. The time now is 04:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy