insert to 3t line
- sed -i "3a ComposeFile='$ComposeFile'" $ScriptFile
Remove CTRL-M characters from a file in UNIX
- sed -i "s/\r//g" $ScriptFile
Replave test between text:
<Version>{ReplasesVersion}</Version>
sed -e "s/\(<Version>\).*\(<\/\Version>\)/\1$version\2/" Deals.csproj
Replace with system symbos:
pacelicsrv/prod - >> pacelicsrv-prod
docker images | sed -e "s/pacelicsrv\/prod/pacelicsrv-prod/g"
sed -i "s/{whar find}/{replace to}/g" {file parsing}
sed -i "s@{whar find}@{replace to}@g" {file parsing}
sed -i "s@\(<DB_CONNECTION_STRING_VALUE>\)@$DB_CONNECTION_STRING_Env@g" $ComposeFile
chenge pattern in sed from "/"