10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I would like to know how can I get a mean score value by ID over a defined genomic region. Here it is an example:
file1
12 100 103 id1
12 110 112 id1
12 200 203 id2
file2
12 100 101 1
12 101 102 0.8
12 102 103 0.7
12 110 111 2.5
12 111 112 2.8
12 200 201 10.1
12 201 202... (7 Replies)
Discussion started by: fadista
7 Replies
2. Shell Programming and Scripting
awk '{if(len==0){last=$4;total=$6;len=1;getline}if($4!=last){printf("%s\t%f\n", last, total/len);last=$4;total=$6;len=1}else{total+=$6;len+=1}}END{printf("%s\t%f\n", last, total/len)}' exon.txt > output.txt
In the attached file I am just trying to group all the same names in column $4 and then... (2 Replies)
Discussion started by: cmccabe
2 Replies
3. Shell Programming and Scripting
Dear All,
I have the following file tabulated:
ID distanceTSS score
8434 571269 10
10122 393912 9
7652 6 10
4863 1451 9
8419 39 2
9363 564 21
9333 7714 22
9638 8334 9
1638 1231 11
10701 918 1000
6587 32056 111
What I would like to do is the following, create 100 new files based... (5 Replies)
Discussion started by: paolo.kunder
5 Replies
4. UNIX for Advanced & Expert Users
I created a awk state to calculate the number of success however when the query runs it has a leading zero. Any ideas on how to remove the leading zero from the calculation?
Here is my query:
cat myfile.log | grep | awk '{print $2,$3,$7,$11,$15,$19,$23,$27,$31,$35($19/$15*100)}'
02:00:00... (1 Reply)
Discussion started by: bizomb
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a space delimited text file but I only want to change the first space to a tab and keep the rest of the spaces intact. How do I go about doing that? Thanks! (3 Replies)
Discussion started by: evelibertine
3 Replies
6. Fedora
Hi,
I run Fedora 17.
I created a physical volume of 30GB on a disk with 60GB of space so there is 30GB of free space. On the physical volume, I created my volume group and logical volumes. I assigned all the space in the physical volume to my volume group. I need to add the 30GB of free space... (1 Reply)
Discussion started by: mojoman
1 Replies
7. Shell Programming and Scripting
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies
8. UNIX for Advanced & Expert Users
Hello, I'm searching for a proper way to let the kernel space ISR(implemented in a kernel module) wake up a user space thread on a hardware interrupt.
Except for sending a real-time signal, is it possible to use a semaphore?
I've searched it on google, but it seems impossible to share a... (0 Replies)
Discussion started by: aaronwong
0 Replies
9. Shell Programming and Scripting
What I thought would be an extremely simple project has proven more difficult for me than I thought. Here are the parameters:
Thus far, I've been able to sort the final grades, but I'm having a lot of trouble with appending the correlating letter grade to the end of each line. Any help would be... (3 Replies)
Discussion started by: lazypeterson
3 Replies
10. Shell Programming and Scripting
Hi guys,
Please guide for Solution.
PART-I
INPUT FILE (has 2 columns ID and score)
TC5584_1 93.9
DV161411_2 79.5
BP132435_5 46.8
EB682112_1 34.7
BP132435_4 29.5
TC13860_2 10.1
OUTPUT FILE (It shudn't contain the line ' BP132435_4 29.5 ' as BP132435 is repeated... (2 Replies)
Discussion started by: smriti_shridhar
2 Replies
moon-buggy(6) Games Manual moon-buggy(6)
NAME
moon-buggy - drive some car across the moon
SYNOPSIS
moon-buggy [-hnsV] [--help] [--no-title] [--show-scores] [--version]
DESCRIPTION
Moon-buggy is a simple character graphics game, where you drive some kind of car across the moon's surface. Unfortunately there are dan-
gerous craters there. Fortunately your car can jump over them!
OPTIONS
The program understands the following command line options.
-h, --help
shows a short usage message.
-m, --mesg
disable write access to your terminal by other users, so your boss can't disturb your game play with the help of "write" or "fin-
ger".
-n, --no-title
skips the title screen.
-s, --show-scores
shows the current highscore list and exits.
-V, --version
prints the program's version to standard output and exits.
KEYS
The moon-buggy is controlled by a couple of keys, which are described near the bottom of the screen. Most important are the following
keys.
SPC, j makes your car jump. The length of a jump is fixed and you can only start a new jump, while the wheels have contact to the ground.
a, l fires the mining laser. The laser is used to remove stones, which may block your way.
q quits the game prematurely. But you still keep your score and may enter the highscore list.
FILES
The following files on your system are related to moon-buggy.
/usr/games/moon-buggy
the moon-buggy executable.
/var/games/moon-buggy/mbscore
the global score file
$HOME/.mbscore
the local score file. This is used, if moon-buggy has no write access to the global score file.
SEE ALSO
Moon-buggy Usage and Maintenance by Jochen Voss.
COPYING
Copyright (C) 2004 Jochen Voss
Moon-buggy is free software. Read the file COPYING of the source code distribution for details or press 'c' at moon-buggy's title screen.
AUTHOR
The program moon-buggy was implemented by Jochen Voss (voss@seehuhn.de).
moon-buggy 1.0.51+esd Dec 27 2004 moon-buggy(6)