awk (gawk) grep & columns

Hi,
I'm working with gawk (on DOS) today.
A goal is: find a string for-instance '123', cut a line in two columns and write second one. The problem is: command line works OK, awk file doesn't. But I would like to work with file because there are many strings to find.

input:

line command:

awk file:

The print command must be on the same line with the condition:

{ FS="Jane " }
/123/{print $2}

Thx a lot, Franklin. So simple now, but I could not find it.

or:

BEGIN{ FS="Jane " } \
/123/ \
{print $2}

But. Then I'd like to add/find one string more...

But it gives me only last result/print ?!?

My problem is namely one (even more) large file and at least twelve strings to find in it (them). I can manage this with twelve awk commands, but I'd like to add all into one awk command file.
And last, I'd like to put results into columns as:

  • first string first column, second string second column,...
    and
  • first file first row, second file, second row,...
    Many wishes...

---------- Post updated at 12:58 PM ---------- Previous update was at 09:48 AM ----------

I found it (silly me :o).

First one ok. But second one: to put results into columns instead of one by one into rows, is still in question:confused:.