06-21-2015
Anything that can be solved by an algorithm can be implemented by any
Turing complete programming language, which the shell certainly is.
Please show the algorithm already used or its C implementation.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello:
First I know the rules on Homework related questions,
I wrote my script, but I cannot seem to figure out how to do one math problem.
How do I take a zip code and seperate the idvidual digits?
I used the modulus expression and divided the number by 10 ^ n
but that only worked... (9 Replies)
Discussion started by: jahjah
9 Replies
2. UNIX for Dummies Questions & Answers
Hi All ,
I'm trying to do a simple math expression ...but unsuccessfull :-(
Anyone can help me?
days=23
amount=`expr ${days} / 30 \* -125`
echo $amount
but as result i got 0 when i expect 95.833333
Another question...how i can limit only to two or three decimal fields?
Thanks in... (1 Reply)
Discussion started by: EDBGSK
1 Replies
3. UNIX for Dummies Questions & Answers
Suppose I have a script named "sc.sh"
in the script how to print out its name "sc.sh"? (3 Replies)
Discussion started by: meili100
3 Replies
4. UNIX for Dummies Questions & Answers
Develop a grade calculating program. This program will process all students in the file. This program should neatly display each field of each student's record *and* adds the following items: Course Average and Letter Grade. The course average is calculated by the following weights: 50% for quiz... (7 Replies)
Discussion started by: knp808
7 Replies
5. Shell Programming and Scripting
Hi Gurus,
I'm currently using HP-UX B.11.23.
I've a simple calculation script which performs the task below.
-> echo "240021344 / 1024 /1024" | bc
Output: 228
240021344 is KB value.
When I tried to perform the same calculate in Ms Excel, it produces a different result: 228.9021912.... (12 Replies)
Discussion started by: superHonda123
12 Replies
6. Shell Programming and Scripting
Have a bit complicated math query ..
Basically i am given a number which is > 50 ..
I am suppose to find the calculation to get a number which is equal or more than the input number and is also a multiple of any number between 20 - 30 .
For example .
Input number is 60 .
Now 20x3 =60 ... (2 Replies)
Discussion started by: greycells
2 Replies
7. Shell Programming and Scripting
Hi
I am trying to calculate the rate at which something is happening.
I have 2 files- a1 and b1.
I want to calculate something like this
((wc -l a1)/(wc -l a1 + wc -l b1))*100 over a loop for different a and b.
Is this possible, help me out fellas.
Thanks a lot :) (5 Replies)
Discussion started by: jamie_123
5 Replies
8. UNIX for Dummies Questions & Answers
Hey everybody, I've been searching google and these forums and have found some solutions to the issues I've been having today within the OLD Bourne Shell. I am following chapter 6 of the Guide to Unix using Linux 4th Edition.
I am working on some basic calculations with variables in the BASH... (3 Replies)
Discussion started by: mr.rhtuner
3 Replies
9. Shell Programming and Scripting
I have a number, say 174. I need to write bash code that will find the first larger number that ends in 99. That would be 199 in this case. If the number were 1263, I would be looking for 1299, for 175438, I would want 175499, etc.
If the numbers were always three digit, I could just grab the... (11 Replies)
Discussion started by: LMHmedchem
11 Replies
LEARN ABOUT DEBIAN
dssi_osc_send
dssi_osc_send(1) General Commands Manual dssi_osc_send(1)
NAME
dssi_osc_send - send OSC messages to DSSI applications.
SYNOPSIS
dssi_osc_send <option> <OSC URL> <values>
DESCRIPTION
dssi_osc_send sends DSSI OSC methods to DSSI applications. dssi_osc_send is typically used to control DSSI hosts (possibly for scripted
operation), or to test DSSI user interfaces.
OPTIONS
-c Send a `control' message. Requires two values to be supplied in the <values> section: control port and value. For example, to set
control port 1 to 0.1:
dssi_osc_send -c <OSC URL> 1 0.1
-p Send a `program' message. Requires two values to be supplied in the <values> section: bank and program number. For example, to
select bank 0 program number 7:
dssi_osc_send -p <OSC URL> 0 7
-m Send `midi' message. Requires four numbers to be supplied in the <values> section. For example, to send a note on, middle C,
velocity 64:
dssi_osc_send -m <OSC URL> 0 144 60 64
-C Send a `configure' message. The <values> are the key and value pair. For example, to send key `load' and value `/tmp/patches.pat':
dssi_osc_send -C <OSC URL> load /tmp/patches.pat
-s Send a `show' message.
dssi_osc_send -s <OSC URL>
-h Send a `hide' message.
dssi_osc_send -h <OSC URL>
-q Send a `quit' message.
dssi_osc_send -q <OSC URL>
-e Send a `exiting' message.
dssi_osc_send -e <OSC URL>
<OSC URL>
The URL to connect to. For example:
osc.udp://localhost:19383/dssi/test.1
osc.udp://my.host.org:10886/dssi/xsynth-dssi/Xsynth/chan00
SEE ALSO
dssi_osc_update(1).
AUTHOR
This manual page was originally created by Mark Hymers from the help text of the application, for the Debian project (but may be freely
used by others).
January 5th, 2009 dssi_osc_send(1)