Hi.
In a simple sed script i have number signs - #. But i can't find any description on their functionality. One thing that i find is that # in sed scripts can mean comment if it is placed in the beginning of the line.
I thought may be this undocumented(for me) behavior refers to regular expressions - but in regexp # doesn't mean anything special.
Script like that
VAR="1 2"
echo $VAR|sed 's# # & #'
and we get output
1 & 2
In this simple example i understand how it works. But i want full description to be confident when i change scripts. Any links?
thanks