0

I want to replace a number with another number which is stored in a variable. How can this be done? Thanks in advance.

4
  • Replace in what? Using what?
    – muru
    Commented Nov 2, 2017 at 17:50
  • Use parameter expansion, explained here!
    – dessert
    Commented Nov 2, 2017 at 17:50
  • 1
    Please add a little more detail: What exactly did you do, what did you want to achieve and what happened instead? Did you encounter any warnings or error messages? Please reproduce them in their entirety by editing your question. You can select, copy and paste terminal content and most dialogue messages in Ubuntu. How do I ask a good question?
    – dessert
    Commented Nov 2, 2017 at 17:51
  • In the second line of my file there is a number (25). I need it to be replaced by another number stored in a variable. I haven't used any code for that. I have been searching the web to find something. Commented Nov 2, 2017 at 17:54

0

Browse other questions tagged .