Hi Could someone help to explain the meaning of the following syntax? I know it is regex but I could not understand s#
sed -r "s#\{\"result\":\{\"status\":\"S\"\}\}##g" $data_get > $data
Hi Could someone help to explain the meaning of the following syntax? I know it is regex but I could not understand s#
sed -r "s#\{\"result\":\{\"status\":\"S\"\}\}##g" $data_get > $data
s#confuse you. It's the same ass/. They're just using a different delimiter than normal, i.e.#rather than/. – steve Jan 05 '20 at 11:57#from Steve and in the duplicates, if you're working with JSON data, it may be more reliable edited withjqthan withsed. You may want to ask a separate question about that. Also, most of the backslashes are not needed in that expression. – Kusalananda Jan 05 '20 at 12:26sed 's/{"result":{"status":"S"}}//g' $data_get > $dataand achieve the same behaviour. – steve Jan 05 '20 at 12:35