08-01-2014
Dear SriniShoo,
Thanks for the reply,it works fine for me,but will u plz elaborate the step by step functionality of code so that i can rewrite the code again as per my requirement
10 More Discussions You Might Find Interesting
1. Programming
Dear Perl's Users,
Could anyone help me how to solve my problem. I have data with details below.
TTY NAME SEQUENCES
U-0 UNIX 0
U-1 UNIX 1
U-2 UNIX 2 <-- From 2 jump to 5
U-5 UNIX 5
U-6 UNIX 6 <-- From 6 jump to 20
U-20 ... (2 Replies)
Discussion started by: askari
2 Replies
2. Shell Programming and Scripting
Hello all,
I have several directories with a sequence of files like this
IM-0001-0001.dcm
IM-0001-0002.dcm
IM-0001-0003.dcm
IM-0001-0004.dcm
IM-0001-0005.dcm
I would like to print out the name of the file that is missing.
I currently have the following ineffecient way to do this... (4 Replies)
Discussion started by: avatar_007
4 Replies
3. Shell Programming and Scripting
Am using unix aix KSH...
I have the files called
MMRR0106.DAT
MMRR0206.DAT
MMRR0406.DAT
MMRR0506.DAT
MMRR0806.DAT
....
...
MMRR3006.DAT
MMRR0207.DAT
These files are in one dircetory /venky ?
I want the output like this ?
Missing files are :
MMRR0306.DAT
MMRR0606.DAT... (7 Replies)
Discussion started by: Venkatesh1
7 Replies
4. Shell Programming and Scripting
Hi all,
I have a file like this
ID 3BP5L_HUMAN Reviewed; 393 AA.
AC Q7L8J4; Q96FI5; Q9BQH8; Q9C0E3;
DT 05-FEB-2008, integrated into UniProtKB/Swiss-Prot.
DT 05-JUL-2004, sequence version 1.
DT 05-SEP-2012, entry version 71.
FT COILED 59 140 ... (1 Reply)
Discussion started by: manigrover
1 Replies
5. Shell Programming and Scripting
I want to listed files every hours and check the missing sequence
my file format is
CV.020220131430.txt
CV.020220131440.txt
CV.020220131450.txt
CV.ddmmyyhhm.txt
how to check if i have missing files in sequence ..
thanks (3 Replies)
Discussion started by: before4
3 Replies
6. Shell Programming and Scripting
I want to use case statement to find the range of missing sequence in my directory which it has some few ( dat & DAT ) files
my directory /home/arm/my_folder/20130428 contains :
f01_201304280000.DAT
f01_201304280001.DAT
f01_201304280003.DAT
f02_201304280000.dat
f02_201304280002.dat... (2 Replies)
Discussion started by: arm
2 Replies
7. Shell Programming and Scripting
Hi,
I need to find out the missing sequence from a list. However the issue is there is not a fixed start and end, it depends on the generation of files.
For eg, it might start with 4000 and end with 9000.
Based on this, I need a script which greps the start and end sequence from the... (3 Replies)
Discussion started by: danish0909
3 Replies
8. Shell Programming and Scripting
Hi,
I have a file which contains few columns and the first column has the file names, and I would like to identify the missing file sequence number form the file and would copy to another file. My files has data in below format.
APKRISPSIN320131231201319_0983,1,54,125,... (5 Replies)
Discussion started by: rramkrishnas
5 Replies
9. Shell Programming and Scripting
Hey guys,
I want the below files to be processed with the help of BASH so that i will be able to find the missing file names :
PP01674520141228X.gz
PP01674620141228X.gz
PP01674820141228X.gz
PP01674920141228X.gz
PP01675420141228X.gz
PP01675520141228X.gz
PP01676020141228X.gz
.
.
.
.... (4 Replies)
Discussion started by: TANUJ
4 Replies
10. Shell Programming and Scripting
Hi All,
I have a requirement that i need to list only the missing sequences with a unix script.
For Example:
Input:
FILE_001.txt
FILE_002.txt
FILE_005.txt
FILE_006.txt
FILE_008.txt
FILE_009.txt
FILE_010.txt
FILE_014.txt
Output:
FILE_003.txt
FILE_004.txt
FILE_007.txt
FILE_011.txt... (5 Replies)
Discussion started by: Arun1992
5 Replies
LEARN ABOUT DEBIAN
io::async::mergepoint
IO::Async::MergePoint(3pm) User Contributed Perl Documentation IO::Async::MergePoint(3pm)
NAME
"IO::Async::MergePoint" - resynchronise diverged control flow
SYNOPSIS
This module as now been moved to its own dist of Async::MergePoint.
It is kept here as a trivial subclass for backward compatibility. Eventually this subclass may be removed. Any code using
"IO::Async::MergePoint" should instead use Async::MergePoint.
use Async::MergePoint;
my $merge = Async::MergePoint->new(
needs => [ "leaves", "water" ],
on_finished => sub {
my %items = @_;
# Make tea using $items{leaves} and $items{water}
}
);
Kettle->boil(
on_boiled => sub { $merge->done( "water", $_[0] ) }
);
Cupboard->get_tea_leaves(
on_fetched => sub { $merge->done( "leaves", $_[0] ) }
);
DESCRIPTION
Often in program logic, multiple different steps need to be taken that are independent of each other, but their total result is needed
before the next step can be taken. In synchonous code, the usual approach is to do them sequentially.
An "IO::Async"-based program could do this, but if each step involves some IO idle time, better overall performance can often be gained by
running the steps in parallel. A Async::MergePoint object can then be used to wait for all of the steps to complete, before passing the
combined result of each step on to the next stage.
A merge point maintains a set of outstanding operations it is waiting on; these are arbitrary string values provided at the object's
construction. Each time the "done" method is called, the named item is marked as being complete. When all of the required items are so
marked, the "on_finished" continuation is invoked.
When an item is marked as complete, a value can also be provided, which would contain the results of that step. The "on_finished" callback
is passed a hash (in list form, rather than by reference) of the collected item values.
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
perl v5.14.2 2012-10-24 IO::Async::MergePoint(3pm)