How to remove some special characters in a string?

Hi,
I have string like this

="Lookup Procedure"

But i want the output like this

Lookup Procedure

=," should be removed.

Please suggest me the solution.

Regards,
Madhuri

Something like this:

$ echo $x
="Lookup Procedure"

To remove = and " :

$ echo $x | sed 's/[="]//g'
Lookup Procedure

Guru.

1 Like

Try:

printf "%s\n" "$str" | tr -d =\"

bash/ksh93:

printf "%s\n" "${str//[=\"]}"
1 Like