11-06-2008
there are two similar looking characters one is ' and another `
use the latter one.
i don't know what it is called; it shares key with tilde (~).
now that should work
10 More Discussions You Might Find Interesting
1. Programming
int percent (int a, int b)
{
if (b/a*100 > 25)
return TRUE;
else
return FALSE;
}
I want to calculate what percentage of a is b.
say if b = 48, a = 100
so b is 48% of a
but wouldnt b/a give me 0 ??? what can be done ?? (6 Replies)
Discussion started by: the_learner
6 Replies
2. Shell Programming and Scripting
i have 3 files like
total.dat=18
equal.dat=14
notequal.dat=16
i need find the equal percentange means:
equalpercentage = ($equal.dat / $total.dat * 100)
How i can do this ?
I tried some of the answers to calculate the percentage in this forums.but it couldn't worked.Some one please... (6 Replies)
Discussion started by: bobprabhu
6 Replies
3. Shell Programming and Scripting
hello,
please can you help me.
jj and kk are two numbers which are the result of an sql program.
I would like to calculate the ratio jj/kk*100.
I have done this:
ratio=$((jj/kk * 100)) or ratio=`expr $jj \/ expr $kk) but the result is 0
What can i do?
Thanks for help. (3 Replies)
Discussion started by: likeaix
3 Replies
4. Shell Programming and Scripting
Input File:
5081
2058
175
8282
2358
7347
6612
3459
END OF INPUT FILE
I need to know how to calculate minimum,maximum,average of the values in the file and also what percentage is the values over some user defined value for example 1000 and what percentage of value is over 5000.
By... (2 Replies)
Discussion started by: aroragaurav.84
2 Replies
5. Shell Programming and Scripting
Need an awk script to calculate the percentage of value field and replace
I have a input file called file.txt with the following content:
john|622.5674603562933|8|br:1;cn:3;fr:1;jp:1;us:2
andy|0.0|12|**:3;br:1;ca:2;de:2;dz:1;fr:2;nl:1
in fourth filed of input file, calulate percentage of each... (1 Reply)
Discussion started by: veeruasu
1 Replies
6. UNIX for Dummies Questions & Answers
I have a input file called file.txt with the following content:
john|622.5674603562933|8|br:1;cn:3;fr:1;jp:1;us:2
andy|0.0|12|**:3;br:1;ca:2;de:2;dz:1;fr:2;nl:1
in fourth filed of input file, calulate percentage of each sub filed seperated by ; semicolon and replace value with percentage .
i... (11 Replies)
Discussion started by: veeruasu
11 Replies
7. Shell Programming and Scripting
I have 100 csv files like:
file_city_1 file_city_2 file_city_3 file_city_4
City name is variable, there is 25 cities, each city has 4 region. Each of the 4 region contain some statistics like:
parameter1 : number1
parameter1 : number2
.....
parameter50 : number50
... (7 Replies)
Discussion started by: Meacham12
7 Replies
8. Shell Programming and Scripting
This matrix represents correlation values.
Is it possible to calculate the percentage of columns (a1, a2, a3) that have a value >= |0.5| and report the percentage that has positive correlation >0.5 and negative correlation <-0.5 separately. thanx in advance!
input
name a1 a2 a3... (5 Replies)
Discussion started by: quincyjones
5 Replies
9. Shell Programming and Scripting
Hello,
Ive got a bunch of numbers here e.g:
6065
6094
6348
6297
6161
6377
6338
6290
How do I find out if there is a difference between 10% or more between one of these numbers ? I am trying to do this in Bash.. but no luck so far.. Does anyone have an Idea ??
Thanx,
- Pascal... (9 Replies)
Discussion started by: denbekker
9 Replies
10. Shell Programming and Scripting
I have a input text file in this format:
ITEM1 10.9 20.1
ITEM2 11.6 12
ITEM3 14 15.7
ITEM5 20 50.6
ITEM6 25 23.6
I want to print those lines which have more than 5% difference between second and third columns. (8 Replies)
Discussion started by: ctrld
8 Replies
LEARN ABOUT DEBIAN
muscan
MUSCAN(1) Museek Daemon Plus MUSCAN(1)
NAME
Muscan - File scanner for Museek
SYNOPSIS
muscan [-c <filename>] [--config <filename>] [-b] [--buddy] [-v] [--verbose] [-r] [--rescan] [-n] [--noscan] [-s <directory>] [--share
<directory>] [-u <directory>] [--unshare <directory>] [-l] [--list] [-h] [--help]
DESCRIPTION
Muscan scans paths & files to be shared by museekd(1). It creates a database of files, with meta-data for MP3 and OGG Vorbis files, if Vor-
bis support was compiled in. There are two available shares databases, Normal and Buddies-Only. Buddies-Only is an optional shares database
that, if enabled, is only accessible by the users you've chosen as "Buddies".
Before running muscan, you will need a configured museekd, which can be done with musetup(1) or fI>musetup-gtk(1), and add some shared
paths with either of the setup tools or with muscan(1).
OPTIONS
Muscan accepts the following options:
-c <filename>, --config <filename>
Use a different config file.
-b, --buddy
Select Buddy-Only Shares.
-s <directory>, --share <directory>
Add directory to shares.
-u <directory>, --unshare <directory>
Remove directory from shares.
-r, --rescan
Rescan shares.
-n, --noscan
Do not rescan shares.
-v, --verbose
Be verbose while scanning shares.
-l, --list
Display list of shared directories.
-h, --help
Display Help, version and exit.
EXAMPLE
To run a quick shares update, run:
muscan or muscan -b
To rescan everything, run:
muscan -r or muscan -b -r
Alternatively you use a different config file with:
muscan --config config.xml
FILES
~/.museekd/config.xml
The default location for the museekd config file.
~/.museekd/config.shares
The default location for the Normal shares database.
~/.museekd/config.shares.state
The default location for the active Normal shares database.
~/.museekd/config.buddyshares
The default location for the Buddy shares database.
~/.museekd/config.buddyshares.state
The default location for the active Buddy shares database's.
AUTHORS
Hyriand <hyriand@thegraveyard.org>
daelstorm <daelstorm@gmail.com>
SEE ALSO
mucous(1) mulog(1) murmur(1) muscand(1) museekcontrol(1) museekd(1) museeq(1) musetup(1) musetup-gtk(1)
daelstorm Release 0.2.0 MUSCAN(1)