Loading ...
Sorry, an error occurred while loading the content.

[PBML] Re: Not a perl question..

Expand Messages
  • Jeff Eggen
    ... Yay me!! ... Correct, of course. But, I ve been getting out of the habit of using sed altogether. ... None that I can see from the man page for sed. They
    Message 1 of 1 , Nov 3, 2003
    • 0 Attachment
      >>> daymobrew@... 11/03/03 06:40am >>>
      >Jeff's solution will of course work.

      Yay me!!

      >The problem with what you were doing it you were not redirecting the
      >changes to a new file. You only needed to append '> file2' to your
      >command:
      >/usr/xpg4/bin/sed -n 's/data1/info1/g' file1 > file2

      Correct, of course. But, I've been getting out of the habit of using sed altogether.

      >Aside: Any reason for not using /usr/bin/sed?

      None that I can see from the man page for sed. They look pretty similar. The binaries are different sizes, though.

      Jeff Eggen
      IT Programmer Analyst
      Saskatchewan Government Insurance
      Ph (306) 751-1795
      email jeggen@...
    Your message has been successfully submitted and would be delivered to recipients shortly.