I would like to replace a specific line in a text document using a configurable argument. Text document example:
DialogUpdateTags,
DialogProductNotFound
{
width: 1000;
height: 166;
}
In the example above I want to edit line 4 "1000" specifically so the script doesn't edit other width values that might also be 1000. So far I have this:
echo "Enter the desired width size in pixels"
read pixelsize
echo "Width size will be $pixelsize"
After that I need a sed command, can anyone help? Is there a way to point SEP only to line 4 and not edit anything else?