Buying Bash sed command help

Discussion in 'Programming' started by Tox, Dec 18, 2013.

  1. #1
    Looking for some one who is good with "sed" , I am making a bash script need to uncomment a line.

    For some reason my command is not working, this is the command"

    # sed -i '/readclients = yes/ s/^#//' /etc/raddb/sql.conf # with no hash marks

    When I check to see if the hash was removed is still there.

    Any one that wants who knows that wants to make a quick $5 ?

    Need this work right now any one ?
     
    Tox, Dec 18, 2013 IP
  2. Fracker

    Fracker Well-Known Member

    Messages:
    103
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    I guess you missed the 'g' at the end..


    sed -i '/readclients = yes/ s/^#//g' /etc/raddb/sql.conf
    Code (markup):
    ------------------------
    can't test the code since m away from my pc
     
    Fracker, Dec 19, 2013 IP