I have already seen other answers trying to solve my problem but I am not able to solve it.#!/bin/bashs=org.gnome.Terminal.Legacy.Keybindingsg=$(echo $s | sed s|\.|/|g) echo $gI have above script  which returnsorg/gnome/Terminal/Legacy/Keybindingsbut I need to append / at the end of this so that it becomesorg/gnome/Terminal/Legacy/Keybindings/How to extend my sed script for this?
Append at the end of line using sed
bash;sed
sed approach:s=org.gnome.Terminal.Legacy.Keybindingsg=$(echo $s | sed y|.|/|; s|$|/|)echo $gorg/gnome/Terminal/Legacy/Keybindings/y|\.|/| - translate all dots . to slashes /