×
Create a new article
Write your page title here:
We currently have 3,189 articles on s23. Type your article name above or create one of the articles listed here!



    s23
    3,189Articles

    Sed: Difference between revisions

    Content added Content deleted
    imported>Took
    m (example)
    imported>mutante
    mNo edit summary
    Line 8: Line 8:
    sed -r s/"(=F1)|(=F2)"/X/g text.txt
    sed -r s/"(=F1)|(=F2)"/X/g text.txt



    [http://www.student.northpark.edu/pemente/sed/sed1line.txt HANDY ONE-LINERS FOR SED]
    = Man-Page =
    = Man-Page =

    Revision as of 11:16, 15 May 2006

    Beispiele

    Alle Zeichen "=F1" und "=F2" in einer Datei durch "X" ersetzten

    cat text.txt | sed -r s/"(=F1)|(=F2)"/X/g
    

    oder, um UUOC zu vermeiden:

    sed -r s/"(=F1)|(=F2)"/X/g text.txt
    


    HANDY ONE-LINERS FOR SED

    Man-Page

    <man>sed</man>

    see also: mansearch, man2html

    Cookies help us deliver our services. By using our services, you agree to our use of cookies.
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.