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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

sed the escape character

  • 04-03-2011 12: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: 35,731 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