sagar123 has asked for the wisdom of the Perl Monks concerning the following question:

Hi ALL This is general replacement we can do with perl one liner perl -pi -e 's/aaa1/aaa /g' del.txt I want something like wild card search and replacements like this: perl -pi -e 's/aaa**/aaa /g' del.txt please suggest thanks and regards;
  • Comment on wild word search and replacement with perl one liner

Replies are listed 'Best First'.
Re: wild word search and replacement with perl one liner
by davido (Cardinal) on Nov 10, 2011 at 01:02 UTC

    ..(Yes, you read correctly, that's dot dot)

    Or you could look at perlretut


    Dave

      Thanks its working GREAT!!! thanks for very quick reply