Here is the command I'm trying to escape a '
from bash
, to vi
s' to ex-mode, and then back to bash
so it can be read into the buffer again:
vi -c 'sp | enew | read ! echo "Use to jump between missing categories ]\\\'"' /home/leeand00/Downloads/qfx/tmp3/converted_visaAccounts.20200619_193625.csv
The part that is giving me trouble is when I want to pass in read ! echo "Use jump between missing categories \\\'"
that part always complains that there isn't a closing '
; so how would one escape this?
Use to jump between missing categories ]'
inside?man sh
: "Enclosing characters in single quotes preserves the literal meaning of all the characters (except single quotes, making it impossible to put single-quotes in a single-quoted string)."