10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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)
Discussion started by: lsantome
2 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
I hope you can help me with the following question:
I have multiple tables like this:
Chr Start End Zygosity Gene
chr1 153233510 153233510 het LOR
chr1 153233615 153233615 hom LOR
chr1 153233701 153233701 hom LOR
chr1 ... (5 Replies)
Discussion started by: lsantome
5 Replies
3. UNIX for Dummies Questions & Answers
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)
Discussion started by: talk1234
2 Replies
4. Programming
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)
Discussion started by: rpd25
2 Replies
5. Shell Programming and Scripting
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)
Discussion started by: ruby_sgp
3 Replies
6. Red Hat
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)
Discussion started by: mschwage
1 Replies
7. Shell Programming and Scripting
Hi all,
I would appreciate if anyone knows how to perform adding to date.
As for normal date, i can easily plus with any number.
But when it comes to month end say for example 28 Jun, i need to perform a plus with number 3, it will not return 1 Jul.
Thanks in advance for your help. (4 Replies)
Discussion started by: agathaeleanor
4 Replies
8. Programming
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)
Discussion started by: mridula
2 Replies
9. Shell Programming and Scripting
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)
Discussion started by: timepassman
4 Replies
10. Shell Programming and Scripting
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)
Discussion started by: yongho
7 Replies