newtext="$(pwgen -s -y 80)" sed $'1c \\\n'"$(sed 's/[\/&]/\\&/g' <<<"$newtext")"$'\n' Here we go. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20140506/598c778d/attachment.html>