Repository navigation
Replies: 1 comment
|
You can read fzf's newline-separated selections directly instead of storing them in while IFS= read -r line; do
printf '%s\n' "$line"
done < <(printf '%s\n' 'line1' 'line2 has spaces' 'line3' | fzf --multi)
|
0 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.
Maybe this is a bash question, but on the other side it could be that I missed an fzf option that makes that easier (with less code).
Usually I just use a
for line in $RESULTloop, but this naturally only works if there are no spaces. Thus I was wondering, if there is a better way to handle this.All reactions