I have an Open Office Spreadsheet document stored inside a bash variable. I want to do something like the following to feed Open Office via
echo "$openOfficeDoc" | ooffice
But it doesn't work.
Note: The content of the bash variable must not be written to disk.
I'll emphasize that I'm trying to pass to Open Office the actual data of the file.
I'm trying to store passwords in an Open Office Spreadsheet file. The passwords are encrypted using GPG. I don't want the passwords to be written to disk for security reasons.
The bash variable value is a binary blob of an Open Office Spreadsheet document. It is not ASCII.
The bash code I used to create the blob is:
data=$(cat "Encrypted.gpg" | gpg -u "Dor" -d)
Encrypted.gpg is an encrypted file of an Open Office Spreadsheet.
Is it possible to feed Open Office via STDIN?