You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
RESULT=$(cat <<EOF |fzf -mline1line2 has spacesline3EOF)while IFS= read -r -d $'\n' line <&3
doecho$linedone 3<<<"$RESULT"
Usually I just use a for line in $RESULT loop, but this naturally only works if there are no spaces. Thus I was wondering, if there is a better way to handle this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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 $RESULT
loop, but this naturally only works if there are no spaces. Thus I was wondering, if there is a better way to handle this.Beta Was this translation helpful? Give feedback.
All reactions