Sometime Today, Manish Jethani assembled some asciibets to say:
perl -ne 's/^Date## +(.+)$/$1/ && print
$_' </root/sandeep/log111.txt
^^^^^^^^
That makes it inefficient (although, in this case only mildly so).
instead, try avoiding the back reference:
s/^Date##\s+// && print $_
Since you know that what's left on the line is all that you want.
Alternately, use a match:
/^Date##\s+(.+)$/ && print $1
Philip
--
Mulder: At least they were having safe sex.
Scully: Business must be booming.
Mulder: I think you mean 'banging'.
"The X-Files: Avatar"
Visit my webpage at
http://www.ncst.ernet.in/~philip/
Read my writings at
http://www.ncst.ernet.in/~philip/writings/
MSN philiptellis Yahoo! philiptellis