Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Can Any help me with the math on this shell script? Post 302266668 by knp808 on Wednesday 10th of December 2008 06:26:33 PM
Old 12-10-2008
i1000:TRINITY:JOAN K:92:92:93:90
1001:BLUMOFF:SAM Q:66:74:94:67
1002:PARTNEY:V C:84:82:100:50
1003:GRANT:RICK R:94:93:99:92
1004:TIPTON:FRED J:65:65:50:63
1005:KELSO:MIKE K:65:55:66:25
1006:STAGNER JR:DON K:85:95:97:87
1007:DONOVAN:CHESTER U:58:62:98:58
1008:MURRAY:TOM S:49:49:60:45
1009:SCHMALTZ:THEODORE:82:95:95:87
1010:MARTIN:WILBUR M:64:74:95:69
1011:HAFFER:LAURA S:72:75:96:70
1012:HALL:EDWARD C:64:65:99:66
1013:MONROE:PAT E:95:92:100:96
1014:BATES:MIKE W:83:92:96:88
1015:MILLMAN:MITCHELL H:67:71:98:68
1016:YOUNG:CLARK O:83:81:100:86
1017:BLAIR:JOHN P:65:73:93:68
1018:KING:PAT O:84:85:99:86
1019:MOORE:TED A:73:73:92:71
1020:DUFFY:GAIL H:57:51:98:54
1021:REINBERG:RON V:65:75:97:68
1022:GREWE:PAT E:73:84:94:77
1023:CLINTON:JOE A:84:94:92:88
1024:ELLIS:LEE E:64:65:94:63
1025:GRISHAM:STAN H:68:64:95:59
1026:GROSS:GENE H:68:51:92:55
1027:GROSSMAN:TIM U:74:81:94:77
1028:GROVE:GRACE O:83:81:95:83
1029:CORBET:LAURIE M:92:94:93:91
1030:WORKS:CINDY E:66:64:95:63
1031:KNEPPER:DON E:59:52:99:56
1032:SHOEMAKE:RHONDA C:67:72:97:67
1033:GULLY:LISA K:66:64:98:61
1034:JOHNSON:LINDA B:51:51:91:49
1035:DEVILLE:VICTOR M:57:51:100:53
1036:MEYER:MIKE D:57:64:91:59
1037:SWARTWOUT:JO I:83:82:98:84
1038:WHEAT:PATTI W:50:52:93:47
1039:CONNORS:STEPHEN X:65:65:98:63
1040:ADAMS:BRUCE X:84:91:99:89
1041:CIRAMI:ALICE N:50:51:94:49
1042:KUMMER:NATALIE P:58:52:91:56
1043:DUBINSKY:JULIE D:94:92:92:95
1044:WEBER:WILLIAM B:58:54:99:56
1045:HAGER:JOE U:65:75:95:67
1046:RISCH:SHARY Q:50:45:60:40
1047:ROWAN:ANGIE D:64:62:92:63
1048:LIENHOP:RICHARD C:50:53:96:49
1049:DANIS:MARK G:65:63:94:60
1050:HALL JR:DON D:93:91:93:94
1051:BREEN:CAROL C:56:53:94:54
1052:DANIELS:ROBERT J:65:65:93:63
1053:RHODES:BECKY N:92:95:96:93
1054:FLACH:JACK F:56:52:100:52
1055:HANNIGAN JR:CAROL:57:53:95:52
1056:WARNER:JAMES P:57:51:93:51
1057:WERNER:MICHELLE F:82:85:96:83
1058:LOVINS:JOLENE C:66:72:99:67
1059:BOIVIN:MARTIN J:56:53:91:53
1060:MEYSTRICK:TERRY H:49:53:93:48
1061:OWINGS:HAROLD P:66:75:99:68
1062:STEWART:VICKI D:84:95:93:88
1063:MCCLELLAN:PAT A:84:91:96:88
1064:HARRIS:NANCY M:81:83:100:82
1065:HARRISON:BRAD F:66:72:96:69
1066:HART:DEBBIE V:58:64:94:58
1067:HILLER:SIDNEY U:75:72:93:75
1068:SMITH:PAUL E:74:73:97:75
1069:TODOROVICH:MARY C:59:63:94:58
1070:HARTWIG:MATT L:72:82:93:79
1071:FOX:JEAN N:93:95:94:93
1072:TOBIN:JOHN Y:93:93:98:91
1073:HARMON:KEVIN U:58:54:95:52
1074:HAUMESSER:JEFF D:75:71:94:75
1075:HAYDEN:MARY R:51:51:100:48
 

10 More Discussions You Might Find Interesting

1. Programming

something about <math.h>

Hi, I got an easy problem for you but really difficult for me 'cause I am pretty new to this field I got header file <math.h> included in my .c file , then I write the code as below: k = sqrt(i); /* both variables k and i are int */ then I cc temp.c it says like this undefined... (4 Replies)
Discussion started by: blf0
4 Replies

2. Shell Programming and Scripting

math help

$ x=1 $ y=1.5 $ z=$((x*y)) bash: 1.5: syntax error: invalid arithmetic operator (error token is ".5") What's wrong? (2 Replies)
Discussion started by: rockbike
2 Replies

3. Shell Programming and Scripting

Script math calculation

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

4. Shell Programming and Scripting

A Math problem using shell script

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

5. Shell Programming and Scripting

Math calculation over shell

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

6. UNIX for Dummies Questions & Answers

Variables and math in Old skool Bourne Shell

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

7. UNIX for Dummies Questions & Answers

How to write Config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

8. Shell Programming and Scripting

How to write config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

9. UNIX for Dummies Questions & Answers

Math

i have file (my_file.txt) that looks like this: 000000000000010000 000000000000010000 000000000000005000 000000000000005000 000000000000005000 000000000000005000 000000000000005000 000000000000005000 000000000000005000 000000000000005000 all said and one, it should look... (11 Replies)
Discussion started by: lawsongeek
11 Replies

10. Shell Programming and Scripting

Shell script for solving the math question

Can such Puzzle solve through UNIX script? if yes, what could be the code? This has been solve in C language. we were trying to solve this through shell but could not because of not able to pass 1st argument with multiple value. we are not expert in unix scripting. Below is the puzzle John is a... (4 Replies)
Discussion started by: anshu ranjan
4 Replies
LIQUIDSOAP(1)						      General Commands Manual						     LIQUIDSOAP(1)

NAME
liquidsoap - a multimedia streaming language SYNOPSIS
liquidsoap [options] [script|expression] DESCRIPTION
Liquidsoap is a programming language for describing multimedia streaming systems. It is very flexible, making simple things simple but giving a lot of control for advanced uses. Liquidsoap supports audio, video and MIDI streams, and a wide range of input/output operators including Icecast and various soundcard APIs. It can perform a broad range of signal processing, combine streams in various ways, support custom transitions, generate sound procedurally... and all this can be assembled as you wish. Input files can be accessed remotely, or even be synthesized on the fly using external scripts such as speech synthesis. Finally, interaction with a running liquidsoap instance is possible via telnet or socket. Liquidsoap scripts passed on the command line will be evaluated: they shall be used to define the streaming system to be ran. It is possi- ble to pass multiple scripts; they will all be ran successively, and definitions from one script can be used in subsequent ones. A script will be read from standard input if - is given as script filename. Information about scripting liquidsoap is available on our website: http://savonet.sf.net/ If the parameter is not a file it will be treated as an expression which will be executed. It is a convenient way to test simple one-line scripts. When running only one-liners, the default is to log messages directly on stdout rather than to a file. OPTIONS
- Read script from standard input. -- Stop parsing the command-line and pass subsequent items to the script. --debug Print debugging log messages. --dynamic-plugins-dir path Directory where to look for plugins. --errors-as-warnings Issue warnings instead of fatal errors for unused variables and ignored expressions. If you are not sure about it, it is better to not use it. --interactive Start an interactive interpreter. --list-plugins List all plugins (builtin scripting values, supported formats and protocols). --list-plugins-xml List all plugins (builtin scripting values, supported formats and protocols), output as XML. --no-pervasives Do not load pervasive script libraries. --version Display liquidsoap's version. -c, --check Check and evaluate scripts but do not perform any streaming. -cl, --check-lib Like --check but treats all scripts and expressions as libraries, so that unused toplevel variables are not reported. -d, --daemon Run in daemon mode. -f, --force-start For advanced dynamic uses: force liquidsoap to start even when no active source is initially defined. -h plugin Print the description of a plugin, eg. a builtin scripting function. -i Display infered types. -p, --parse-only Parse scripts but do not type-check and run them. -q, --quiet Do not print log messages on standard output. -r filename Process a request. -T, --disable-telnet Disable the telnet server. -U, --disable-unix-socket Disable the unix socket. -t, --enable-telnet Enable the telnet server. -u, --enable-unix-socket Enable the unix socket. -v, --verbose Print log messages on standard output. --conf-descr-key key Describe a configuration key. --conf-descr Show all configuration keys with their documentation. --conf-descr-liqi Show all configuration keys with their documentation in liqi (documentation wiki) format. --conf-dump Dump the configuration state -help, --help Display this list of options SEE ALSO
Our website http://savonet.sf.net/ and the HTML documentation coming with your distribution of liquidsoap. AUTHOR
Savonet team <savonet-users@lists.sourceforge.net> Liquidsoap 1.0.1 June 25, 2012 LIQUIDSOAP(1)
All times are GMT -4. The time now is 12:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy