COMPANY_NAME=`cat file.txt | grep \"company_name\" | cut -d \'=\' -f 2`
outputs something like this
\"Abc Inc\";
I am not finding that sed 's/;$//' works. It doesn't trim anything, though I'm wondering whether it's because the character I'm trying to trim off happens to be a "$". What does work for me is sed 's/.\{1\}$//'.
sed 's/;$//'
sed 's/.\{1\}$//'