in reply to Re^2: Skip lines until you find a delimiter >>
in thread Skip lines until you find a delimiter >>

What did you try and in what way did it fail to meet your expectations?

As you are new here you may not yet have read all the FAQ and maybe not even How do I post a question effectively? or Is PM a good place to get answers for homework? It's probably a good idea to have a quick read through those now.

There would be many literal answers to your question as posed but here's one that I do not particularly recommend and is therefore presented only for amusement as it probably isn't what you wanted anyway.

echo '<"Session Date:Mar 13/2017 ":>>test", 1,2,3,4 ":>>test1", 5,6,7,8 end>' | perl -ne '/\x3E{2}(\w+)/&& die "Variable is $1\n";'

You'll probably want to start with perlintro and then move on to perlrun and perlretut. Enjoy.

Replies are listed 'Best First'.