I’ve a text file with a line
default_color acolor
and I want to replace this line with
default_color anothercolor
I don’t know the first color and the second is contained in a variable.
How can I do it in bash ?
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is not pure bash but if you have other console tools, try something like