Replacing Character in a file based on element

Hi,

I have file like below.

Unix:/pclls/turc>cat tibc.property
executeReceiver=Y
executeSender=Y

I want to replace executeSender=N in the file. My file should be like below.
executeReceiver=Y
executeSender=N

I tried with the below command, its giving error.

cat tibc.property | sed 's/executeSender=/executeSender=N'

I am getting the error :
sed: Function s/executeSender=/executeSender=N cannot be parsed.

Anyone help on this.

Try this.

 
 sed "s/executeSender=Y/executeSender=N/g" file >newfile

Alternatively if you want the changes in the same file then you can use

sed -ie 's/xecuteSender=Y/executeSender=N/' tibc.property

Make sure you either have a backup copy of the file or first exec the cmd with the out -i option and if you are fully satisfied with the output then use -i

Cheers,
Daptal