I want to replace a number with another number which is stored in a variable. How can this be done? Thanks in advance.
Asked
Active
Viewed 196 times
0
-
Replace in what? Using what? – muru Nov 02 '17 at 17:50
-
Use parameter expansion, explained here! – dessert Nov 02 '17 at 17:50
-
1Please 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 Nov 02 '17 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. – G. Paschalis Nov 02 '17 at 17:54