Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

sed the escape character

  • 04-03-2011 01:48PM
    #1
    Closed Accounts Posts: 18


    I don't know whether this is easy or impossible!!

    #sed "s|%5C|\|g" $DB_NAME"data01.sql" >$DB_NAME"data02.sql"

    I am trying to convert the %5C to \ but this seems like a good way to kill ubuntu!!!:D

    How do I escape \?


Comments

  • Moderators, Arts Moderators Posts: 36,031 Mod ✭✭✭✭pickarooney


    Does using \e or \x1B instead of %5C help?


  • Registered Users, Registered Users 2 Posts: 1,889 ✭✭✭evercloserunion


    TonyMac wrote: »
    I don't know whether this is easy or impossible!!

    #sed "s|%5C|\|g" $DB_NAME"data01.sql" >$DB_NAME"data02.sql"

    I am trying to convert the %5C to \ but this seems like a good way to kill ubuntu!!!:D

    How do I escape \?
    You should just be able to use \\.


Advertisement