Replies: 1 comment 4 replies
-
I believe the correct way to achieve this would be to add some shell script wrapper around it, something like # set vars below as needed
ARCHIVE='/path/to/thearchive.zpaq'
DESTINATION='/path/to/destination/dir/'
while IFS='|' read -r VERSION FILENAME _ ; do
zpaqfranz x "$ARCHIVE" "$FILENAME" -until $VERSION -to "$DESTINATION"
done < <(zpaqfranz fzf "$ARCHIVE" | fzf --multi --no-select-1) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I didn't know much of fzf, but a user of mine (fcorbelli/zpaqfranz#63 (comment)) asked me to support it, so I'm going to ask a few questions that have probably been answered 1,000 times already
Please be patient
Suppose we have some kind of encoded input-parameter.
For example
There is a number (a backup version) and a filename
You usually get same filenames, BUT different versions
Suppose you want to run "something" (aka: the file extractor) selecting the 3nd line of the example by fzf
We need to take the version number (2 in this example) and the filename (/tmp/foo.txt)
Is it possible and how?
I can, of course, change the output to make things easier (fixed length, comma delimited or whatever)
Thanks to all answers
Beta Was this translation helpful? Give feedback.
All reactions