rubydba has asked for the wisdom of the Perl Monks concerning the following question:
and when I vi the input file the cursor ends and either the T of WCC.CONTACT or the D for WCC>CONTACTMETHOD The issue is that when I codeCREATE TABLE WCC.CONTACT ,,,, ; CREATE TABLE WCC.CONTACTMETHOD ....
I will get both paragraphs. I triedperl -ne 'print if /CREATE TABLE WCC.CONTACT/ .. /;/' inputfile > outf +ile
or other choices and I have yet to be able to show the end of line. grep -p is unavailable in the Linux arena (and it will be Linux at the landing zone) so I could use any/all suggestionsperl -ne 'print if /CREATE TABLE WCC.CONTACT$/ .. /;/' inputfile > out +file
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Searching for paragraphs but tricky
by hippo (Archbishop) on Jul 17, 2013 at 20:45 UTC | |
by rubydba (Initiate) on Jul 19, 2013 at 21:42 UTC | |
by hippo (Archbishop) on Jul 20, 2013 at 10:21 UTC |