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
TENMADO(6) tenmado manual TENMADO(6)
NAME
tenmado - hard-core shoot 'em up game in blue-or-red world
SYNOPSIS
tenmado [ --dump stage ] [ --full-screen ] [ --help ] [ --slow ] [ --stage stage ] [ --undump stage ] [ --undump-default ] [ --version ]
DESCRIPTION
tenmado is a vertically scrolling, late 1990s style (that is, a massive number of enemy shots against a smaller-than-it-looks spaceship)
shoot 'em up game. A very accurate collision detection makes it a game of dexterity. If something looks like a triangle, it is a trian-
gle, not a rectangle of similar size.
However, surviving is only 20% of the game. The main feature of tenmado is the "color chain bonus". You can get a very big score (about
100 times bigger than a normal enemy-destruction point) by destroying enemies of the same color successively. It is easy or difficult
depending on how greedy you are.
In the game, use cursor keys to move, press space key to shoot (auto-repeat). A joystick is also available for move and shoot. Note that
you must plug the joystick before you invoke tenmado. For more information, see the tutorial demo by choosing it from the menu in the
title. Also check the README file which can be found at /usr/share/doc/tenmado/README .
OPTIONS
--dump stage
Write high score data to standard output and exit. Usually you save the output in a file and later use that file as the input of
--undump. stage must be between 0 and 5. stage 0 means total score. stage 1 -- 5 means each stage score.
--full-screen
Run the game in the full screen mode.
--help Print a help message and exit.
--slow Run the game at the half speed. Technically, the length of waiting between each frame is doubled. This slows down everything in
the game, including your ship. The idea is to study the enemy formations for a later (normal speed) play. The animation may be
rough because this option gives you only about 16 fps. You can't enter the high score lists with this option.
--stage stage
Start the game at the specified stage. stage must be between 1 and 5. Note that you can play only one stage (the specified one)
and you can't enter the high score lists.
--undump stage
Read high score data from standard input, save them and exit. The input is usually the output of --dump. stage must be between 0
and 5. stage 0 means total score. stage 1 -- 5 means each stage score. Only the superuser may use this option.
--undump-default
If at least one high score list is empty, read the default high score data, save them and exit. If not, do nothing. The main pur-
pose of this option is to create high score database files at installation time so that you can set their permission.
--version
Print version information, license information and the disclaimer, then exit.
BUGS
Please report any bugs you find to Oohara Yuuma <oohara@libra.interq.or.jp>.
AUTHOR
Oohara Yuuma <oohara@libra.interq.or.jp>
Project Geeste Thu, 16 Jan 2003 TENMADO(6)