Need to edit a line from particular section inside a file using sed in linux

$ cat test.txt
[test]

    #provider = keystone.token.providers.uuid.Provider
    #driver = keystone.token.persistence.backends.sql.Token
    #caching = true
    #cache_time = <None>

[token]

    #provider = keystone.token.providers.uuid.Provider
    #driver = keystone.token.persistence.backends.sql.Token
    #caching = true
    #cache_time = <None>

[trust]

    #provider = keystone.token.providers.uuid.Provider
    #driver = keystone.token.persistence.backends.sql.Token
    #caching = true
    #cache_time = <None>

1) need to edit the provider line from [token] section alone, please help me?


Source: linux

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.