This is one of those things that always seems to bite me.
I have the following in my script -
sed -i '284s/"[^"]*"/"mclane.com mclane.mclaneco.com"/g' <filename>
I need to configure the command so the 284 line number can be read as $ln in case the file
gets modified and the line number that actually needs to be edited changes.
I thought the following would work but that is not the case.
sed -i "$ln s/"[^"]*"/"mclane.com mclane.mclaneco.com"/g" <filename>
Thank you for your insight and assistance.
SteveR77
I.T. where a world of choas and confusion comes down to nothing but 1s and 0s.
I have the following in my script -
sed -i '284s/"[^"]*"/"mclane.com mclane.mclaneco.com"/g' <filename>
I need to configure the command so the 284 line number can be read as $ln in case the file
gets modified and the line number that actually needs to be edited changes.
I thought the following would work but that is not the case.
sed -i "$ln s/"[^"]*"/"mclane.com mclane.mclaneco.com"/g" <filename>
Thank you for your insight and assistance.
SteveR77
I.T. where a world of choas and confusion comes down to nothing but 1s and 0s.