J
justme
hi
i have a file like this
---> STOR ABC.DEF.M.Y1234.MMMMM.TTTTTT
125 Storing data set ABC.DEF.M.Y1234.MMMMM.TTTTTT
250 Transfer completed successfully.
---> QUIT
221 Quit command received. Goodbye.
MMMMM.TTTTTT are dynamic
i want to grab just the lines :
125 Storing data set ABC.DEF.M.Y1234.MMMMM.TTTTTT
250 Transfer completed successfully.
so i did up a code
open(FILE,"test.dat") or die "Cannot open test.dat\n";
while ( <FILE> )
{
print "Got it" if $_ =~ /^125 Storing data set ABC.DEF.M.Y.*\n250
Transfer completed successfully.$/m
}
but it does not work.
can someone correct my mistakes on the regexp. thanks.
i have a file like this
---> STOR ABC.DEF.M.Y1234.MMMMM.TTTTTT
125 Storing data set ABC.DEF.M.Y1234.MMMMM.TTTTTT
250 Transfer completed successfully.
---> QUIT
221 Quit command received. Goodbye.
MMMMM.TTTTTT are dynamic
i want to grab just the lines :
125 Storing data set ABC.DEF.M.Y1234.MMMMM.TTTTTT
250 Transfer completed successfully.
so i did up a code
open(FILE,"test.dat") or die "Cannot open test.dat\n";
while ( <FILE> )
{
print "Got it" if $_ =~ /^125 Storing data set ABC.DEF.M.Y.*\n250
Transfer completed successfully.$/m
}
but it does not work.
can someone correct my mistakes on the regexp. thanks.