Search Results

Search: Posts Made By: Perderabo
68,829
Posted By Perderabo
Re: Pass variable to sed?
Take the variables out of the single quotes...
sed 's/1111/'${A}'/g;s/2222/'${B}'/g;s/3333/'${C}'/g' file > anotherfile

At least that should always work. For the example you posted, it looks...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 03:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy