I hope you can help me with the following question:
I have multiple tables like this:
What I need to do is to find, for every group in the "Gene" column, correlative lines where "Zygosity"=hom (there must be more than one per group). Once it's done, the interval is defined by the "Chr" value, "Start" value of the first element and the "End" value of the last element.
The expected output for the example above should be:
I'm not asking for a complete solution but a hint to start. All suggestions are welcome.
Thamks!
Last edited by Franklin52; 06-04-2014 at 05:52 AM..
Reason: Please use code tags
I have a 300 line script which generates key performance indicators for one of our systems. Since I just started learning sh/ksh half a month ago there's still a lot I haven't had experience with yet.
Currently, the script generates the report for a specific day. (It takes the date specified by... (2 Replies)
I posted a question on date intervals about a month back asking about how I could be able to go about a user entering the starting year/month/day and an ending year/month/day and then the script automatically cycling through each day of each month of each year that the user has specified.
I... (7 Replies)
hi all,
i wrote a script to mail myself using pine (modified) to keep remind of b'days.
#!/bin/bash
grep "`date +%D |awk -F/ '{print $2+1, $1+0}'`" dataFile >/home/username/mailme
if test -s /home/username/mailme
then
pine -I '^X,y' -subject "Birthday Remainder" username... (4 Replies)
hi!
i m tryin to write a program that will perform a specific tasks after fixed interval of time.say every 1 min.
i jus donno how to go abt it.. which functions to use and so on...
i wud like to add that i am dont want to use crontab over here.
ny lead is appreciated.
thanx. (2 Replies)
Hi,
I have set up sar on my RedHat and Fedora Linux systems. I am running sa1 from cron:
0 8-17 * * 1-5 /usr/lib/sa/sa1 1200 3 &
The 1200 and 3 parameters tell sa1 to save data every 1200 seconds (== 20 minutes) and to write 3 times.
When I run sar to observe my data, I'll see... (1 Reply)
Hello, first of all I am happy to sign up here.
Next is, I have shell scripts for all the files I want looped infinitely for specific intervals(This is for a wmii config). My question here is how can I run multiple scripts at a 10 second interval for instance? (4 Replies)
divide input values into specified number (-100 or -200) according to the key (a1 or a2 ....)
For ex: if we give -100 in the command line it would create 100 number intervals (1-100, 100-200, 200-300) untill it covers the value 300 in a1.
Note: It should work the same even with huge numbers... (3 Replies)
Hi,
I need your expertise in selecting files from a folder.
I have files named with convention: filename.i.j
where j is an interger from 1 to 16, for each i which is an integer from 1 to 2000.
I would like to select the files with i in regular interval of 50 like
filename.1.j,... (2 Replies)
I need to write a script which can send files via sftp communication continously for half an hour or any given duration of time. I have already written a batch file to send multiple file via SFTP.
but I need to know how can we set a duration of half an hour through shell script. Can we use sleep... (2 Replies)
hi all,
I wish to calculate the length between intervals whose are defined by a starting and an end possition. The data looks like this:
1 10
23 30
45 60
70 100...
The desired output should be:
13 # (23-10)
15 # (45-30)
10 # (70-60)...
I donīt know how to operate with different... (2 Replies)