There is also triple < here doc that provides a string as stdin input, e.g.
cat <<<"this string"
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?
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.