Re: Replace a string inside a file

From: Anthony E. Greene (agreene_at_pobox.com)
Date: 09/16/03

  • Next message: Emmanuel Seyman: "Re: exchange alternative"
    To: redhat-list@redhat.com
    Date: Tue, 16 Sep 2003 04:04:15 -0400
    
    

    On 15-Sep-2003/15:03 -0400, Keith Birchfield <birchfld@waytec.com> wrote:
    >Hello all, and thanks for previous help! :-)
    >
    >Can anyone give me a csh cheat to copy a file with a specific string
    >replaced with another?

    sed file1 -e s/blue/red/ > file2

    -- 
    Anthony E. Greene <mailto:Anthony%20E.%20Greene%20%3Cagreene@pobox.com%3E>
    OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
    AOL/Yahoo Messenger: TonyG05    HomePage: <http://www.pobox.com/~agreene/>
    Linux. The choice of a GNU generation <http://www.linux.org/>
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Emmanuel Seyman: "Re: exchange alternative"

    Relevant Pages

    • Re: Connection with MS-SQL server
      ... AOL/Yahoo Messenger: TonyG05 HomePage: ... Linux. ... The choice of a GNU generation ...
      (RedHat)
    • Re: simple script
      ... Tony ... AOL/Yahoo Messenger: TonyG05 HomePage: ... Linux. ...
      (RedHat)
    • Re: RosAsm Bliss, and NASM Bliss
      ... Windows and Linux. ... looks like a Troll compared to the windows one. ... I think its hard to judge from the HLA code. ... checks to see if there is already a string allocated, if so, frees ...
      (alt.lang.asm)
    • Re: Lenovo ThinkPads need acpi_osi="Linux"
      ... that the Lenovo BIOSes need the OSI string Linux defined to behave properly ... Lenovo has been attempting to make things a bit easier for Linux on their ... which used the Linux OSI string to fix or work around AML weirdness. ...
      (Linux-Kernel)
    • Re: Lenovo ThinkPads need acpi_osi="Linux"
      ... that the Lenovo BIOSes need the OSI string Linux defined to behave properly ... Lenovo has been attempting to make things a bit easier for Linux on their ... which used the Linux OSI string to fix or work around AML weirdness. ...
      (Linux-Kernel)