I'm having trouble inputting random generated passwords into some scripts.
I generate the password, and paste it between "". But sometimes it contains characters that sends the whole thing crashing down, like " # or whatever.
EDIT: I have been pointed to Quoting for a solution
There are several options for Quoting ( using \
, " "
and ' '
) but each require checking the string for special characters, like single quotes in a single quote block.
Is there a way to really paste a string without needing to check it or is doing that check always necessary when your random string can contain the ' character at least.