Skip to content

Tag: sed

Replacing “/ characters with sed, from within php

I generate password from php (thru web page) using shell_exec / dd/ /dev/urandom. I want to eliminate “/ characters from my generated password. If I do a replacement in my sed line with ‘s/[“/]/!/g’ the script fails to execute. However I tested this from command line like echo “t…