Skip to content

Instantly share code, notes, and snippets.

@k-stailey
k-stailey / losuspects
Created Sep 24, 2014
Lost some stupid info because it's in a LibreOffice file? Line up the suspects fast.
View losuspects
#! /bin/bash
if [ $# -ne 1 ]; then
echo "Usage: `basename $0` searchterm (regex)"
exit 1
fi
(locate .odt | grep odt$ ; locate .ods | grep ods$) |
while read file
do
You can’t perform that action at this time.