Perl search string

Discussion in 'Perl Misc' started by Claudio Palmeri, Feb 21, 2012.

  1. Hi all,

    I'm newbie to Perl, and if it possible i'm searching for a simple
    program that reads strings from one file and search it into another
    and if it's found it will be write into a third one.

    Thank you

    Best Regards

    Claudio
     
    Claudio Palmeri, Feb 21, 2012
    #1
    1. Advertising

  2. Claudio Palmeri <> wrote:
    >I'm newbie to Perl, and if it possible i'm searching for a simple
    >program that reads strings from one file


    perldoc -f open
    perldoc -f readline

    >and search it into another


    perldoc -f open
    perldoc -f readline
    perldoc -f grep
    perldoc perlop and look for the m operator

    >and if it's found it will be write into a third one.


    perldoc -f open
    perldoc -f print

    jue
     
    Jürgen Exner, Feb 21, 2012
    #2
    1. Advertising

  3. Claudio Palmeri

    Justin C Guest

    On 2012-02-21, Claudio Palmeri <> wrote:
    > Hi all,
    >
    > I'm newbie to Perl, and if it possible i'm searching for a simple
    > program that reads strings from one file and search it into another
    > and if it's found it will be write into a third one.


    You won't find programs here, you write them yourself and ask for help
    if it doesn't work as you expect.

    The following documentation might be useful:
    perldoc -f open
    perldoc perlre

    Please read the Posting Guidlines, posted here from time to time, they
    can be viewed here: <URL:http://bit.ly/ydPryC>

    Justin.

    --
    Justin C, by the sea.
     
    Justin C, Feb 21, 2012
    #3
  4. Claudio Palmeri

    Dr.Ruud Guest

    On 2012-02-21 15:29, Claudio Palmeri wrote:

    > I'm newbie to Perl, and if it possible i'm searching for a simple
    > program that reads strings from one file and search it into another
    > and if it's found it will be write into a third one.


    See also grep(1), that mentions -f FILE.

    --
    Ruud
     
    Dr.Ruud, Feb 22, 2012
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anand Pillai

    String search vs regexp search

    Anand Pillai, Oct 12, 2003, in forum: Python
    Replies:
    10
    Views:
    611
    Anand Pillai
    Oct 15, 2003
  2. Abby Lee
    Replies:
    5
    Views:
    447
    Abby Lee
    Aug 2, 2004
  3. walala
    Replies:
    21
    Views:
    224
    John W. Krahn
    Sep 23, 2003
  4. Ron M.
    Replies:
    4
    Views:
    149
    Tad McClellan
    Jan 5, 2004
  5. TheDizzyDevil

    Perl String Search

    TheDizzyDevil, Apr 19, 2006, in forum: Perl Misc
    Replies:
    2
    Views:
    125
    John W. Krahn
    Apr 20, 2006
Loading...

Share This Page