Mailinglist Archive: opensuse (3506 mails)

< Previous Next >
Re: [SLE] How to exchance characters in a file
  • From: "Marius Roets" <roets.marius@xxxxxxxxx>
  • Date: Mon, 4 Sep 2006 11:04:43 +0000 (UTC)
  • Message-id: <5ddfa2210609040404i576584eft3f422153a153116e@xxxxxxxxxxxxxx>
On 9/4/06, Sylvester Lykkehus <zly@xxxxxxxxxxxxxx> wrote:
I'm curious, why use the perl command instead of just:
sed 's/\$/\n/g' filename.txt > fixed.txt

What exactly does perl -i -pe do different ?

Well, nothing at all :). It's just a different way of doing the same thing.

Personally I never bothered to learn sed or awk, quite simply because
I could handle their functionality easily with perl. Perl has the
added benefit of being quite a powerful and verstatile programming
language.

Marius

< Previous Next >
Follow Ups