Christina ✅ 🇨🇦 on Nostr: for any fellow low-tech cooks who have recipes in #LibreOffice #odt files, a #Linux ...
for any fellow low-tech cooks who have recipes in #LibreOffice #odt files, a #Linux grep command that searches for keywords, such as ingredients:
for file in *.odt; do
unzip -c "$file" | grep -iq IngredientWrappedInSingleQuotes && echo "$file";
done
Published at
2023-09-18 23:01:15Event JSON
{
"id": "84cfbf79d2c3028fed6a62e868d76e4a2bee2788ebdc1a5d40adeb9c455c1985",
"pubkey": "6dd72af0693d64f70d66237c3b9bb9149ec884663828941390a6ad217a699c1a",
"created_at": 1695078075,
"kind": 1,
"tags": [
[
"t",
"libreoffice"
],
[
"t",
"odt"
],
[
"t",
"linux"
],
[
"proxy",
"https://mastodon.sdf.org/users/cosullivan/statuses/111088636760306339",
"activitypub"
]
],
"content": "for any fellow low-tech cooks who have recipes in #LibreOffice #odt files, a #Linux grep command that searches for keywords, such as ingredients:\n\nfor file in *.odt; do \n\n unzip -c \"$file\" | grep -iq IngredientWrappedInSingleQuotes \u0026\u0026 echo \"$file\"; \n\ndone",
"sig": "3f0c6a78c5eceb0e26072454b6084c855674f683789d425692669041a7f48c52ff036497832b57397b49ab876ea9b52ab9797e64174366ee4e3b65e52eb699fd"
}