How to remove all instances of a particular symbol from a text file?

tr can do that:

tr -d \" < infile > outfile

You could also use sed:

sed 's/"//g' < infile > outfile

Another version of sed command:

sed -i s/\"//g file.txt
  • sed stream editor

    • -i in-place (edit file in place)
    • s the substitute command
    • /replacement_from_reg_exp/replacement_to_text/ statement
    • \" quotes preceded by backslash (replacement_from_reg_exp)
    • empty string between slash delemiters (replacement_to_text)
    • g global (for replace all occurrence in line)
  • file.txt the file name