Thanks!
In the echo command it works fine but when I'm running this command on the file ,the last line which contains the strings is deleted!
Before sed:
tofu:/tmp # cat bitbandConfig.properties
maestroIp=10.10.10.10
maestroPort=2020
adminPlayPath=<Streaming Agent IP>:2021/streamingGateway/GetPlayList
###This part should not be changed###
adminPlayVODProtocol=http
username=iptv
password=iptv
soapContext=bitband/services/IPTVPlugin
adminFileFormat=.asx
mediaFilePath=
playerJSPath=bitbandPlayer.js
serviceUnitId=1$-$VOD#0$-$VOD
### vs agnostic properties ###
encodingFormats=MPEG-1$-$MPEG_1_SYSTEM#MPEG-2$-$MPEG_2_TRANSPORT#MPEG-4$-$MPEG_4
After sed:
tofu:/tmp # sed -e 's/MPEG-4\$-\$MPEG_4/MPEG-4\$-\$MPEG4_H264/' bitbandConfig.properties
maestroIp=10.10.10.10
maestroPort=2020
adminPlayPath=<Streaming Agent IP>:2021/streamingGateway/GetPlayList
###This part should not be changed###
adminPlayVODProtocol=http
username=iptv
password=iptv
soapContext=bitband/services/IPTVPlugin
adminFileFormat=.asx
mediaFilePath=
playerJSPath=bitbandPlayer.js
serviceUnitId=1$-$VOD#0$-$VOD
### vs agnostic properties ###
tofu:/tmp # sed 's/#MPEG-4\$-\$MPEG_4/#MPEG-4\$-\$MPEG4_H264/g' bitbandConfig.properties
maestroIp=10.10.10.10
maestroPort=2020
adminPlayPath=<Streaming Agent IP>:2021/streamingGateway/GetPlayList
###This part should not be changed###
adminPlayVODProtocol=http
username=iptv
password=iptv
soapContext=bitband/services/IPTVPlugin
adminFileFormat=.asx
mediaFilePath=
playerJSPath=bitbandPlayer.js
serviceUnitId=1$-$VOD#0$-$VOD
### vs agnostic properties ###
encodingFormats=MPEG-1$-$MPEG_1_SYSTEM#MPEG-2$-$MPEG_2_TRANSPORT#MPEG-4$-$MPEG4_H264
Did you change something in my sed command or your magic hands did the job?