mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-17 15:53:39 -05:00
Fix syntax error in example
@@ -1048,7 +1048,7 @@ p () {
|
||||
EXPIRY=$(( 86400 + $RANDOM * 20 )) # 1 day (86400 seconds) plus some random
|
||||
CMD="pdftotext -f 1 -l 1 '$FILE' - 2>/dev/null | tr \"\n\" \"_\" "
|
||||
CACHE="$DIR/$HASH"
|
||||
test -f "${CACHE}" && [ $(expr $(date +%s) - $(date -r "$CACHE" +%s)) -le $EXPIRY ] || {touch ${CACHE}; eval "$CMD" > "${CACHE}"}
|
||||
test -f "${CACHE}" && [ $(expr $(date +%s) - $(date -r "$CACHE" +%s)) -le $EXPIRY ] || eval "$CMD" > "${CACHE}"
|
||||
echo -e "$FILE\t$(cat ${CACHE})"
|
||||
done
|
||||
} | fzf -e -d '\t' \
|
||||
|
||||
Reference in New Issue
Block a user