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..
Meanwhile I tried to write something on my own and finally managed to do so..
It's not pretty and it's not optimized, but it works..
Would be nice, if s.o. could tell me, if I made any mistakes,
or if s.th. could/should be made differently..
Here is my bash-version using: comm, cut, factor, let, sed and tr
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)
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)
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
4. Post Here to Contact Site Administrators and Moderators
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)
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)
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)
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)
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)