Question
I want to redirect a string into the STDIN of a command.
I would do it using something like cmd <<< "my string"
in Bash, or even cmd <<EOF ... EOF
. But I can't seem to do either in Fish. What am I supposed to do here? Are pipes the only way?
Solution
Yes, you would use pipes for this, e.g. echo "my string" | cmd
. fish has no equivalent to the <<< operator in bash.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow