Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Replace a character with other

$
0
0
Hi All,
I am having the below sample lin in the file.
Code:

'''||V_D_BOOKING_TYPE||''' || ''¬'' || '''||V_D_SHARE_DELIV_FL||''' || ''¬'' || '''|| SUBSTR(V_D_FINANCIALDATATYPE,1,1) ||''' || ''¬'' ||
I need to replace ''¬'' with char(172). how do i do it.
PLease help.


Code:

sed 's/\''¬\''/chr(172)/g' test.txt  # not correct.

Viewing all articles
Browse latest Browse all 16232

Trending Articles