Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Use SED for Windowws in batch.  (Read 93175 times)

0 Members and 1 Guest are viewing this topic.

briandams



    Beginner

    Thanked: 2
    • Experience: Guru
    • OS: Unknown
    Re: Use SED for Windowws in batch.
    « Reply #15 on: January 29, 2014, 05:31:49 AM »
    I prefer to cut down on learning curve of  using too many disparate tools, and stick to one language, with a lot of available APIs. Strawberry Perl Portable. No installation needed. Just one directory full of goodies.

    Geek-9pm

      Topic Starter

      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: Use SED for Windowws in batch.
    « Reply #16 on: May 29, 2017, 03:02:14 PM »
    ERRATA
    This is rather late, but somehow it was not mentioned t in Windows you can not use the simple quote thin '
    Instead  you have to us the double quote thing "

    Also some versions of sed want  a g after the last /
    so---
     sed s/123/789/ <OLD.TXT  >NEW.TXTBE
    BE--
      sed "s/123/789/G" <OLD.TXT  >NEW.TXTBE

    sorry  :-[

    For more about sed, see the archives:
    https://www.computerhope.com/unix/used.htm