
tengo dos archivos
archivo1:
world,11
archivo2:
hello welcome to the ("12345,67")
Estoy intentando reemplazar lo anterior "(12345,67)"
con"world,11"
Respuesta1
Según lo que publicaste creo que este código resolverá tu problema:
replacement=`cat replacement.txt`
content=`cat content.txt`
pattern="pattern"
echo "${content//$pattern/$replacement}" # all strings matching will be replaced with $replacement
echo "${content/$pattern/$replacement}" # the first string matching the pattern will be replaced