DEV Community

Discussion on: Bash Brackets Quick Reference

Collapse
 
whereisaaron profile image
Aaron Roydhouse

There is also triple < here doc that provides a string as stdin input, e.g.
cat <<<"this string"

Collapse
 
rpalo profile image
Ryan Palo

Cool! Does this give you any benefits over “echo some string | cat”? I guess it saves cat from being run in a sub shell, maybe?

Some comments have been hidden by the post's author - find out more