Practical Shell Patterns I Use
zwischenzugs.com
zwischenzugs.com
$ kubectl apply -f <(cat << EOF
…
EOF
)
can be written $ kubectl apply -f- <<EOF # ...
Piping from cat is a pretty big red flag that you are doing whatever you are doing in a roundabout way.(1) Bash: https://github.com/dylanaraps/pure-bash-bible
(2) POSIX Shell: https://github.com/dylanaraps/pure-sh-bible
For infinite loops I prefer the slightly faster
while :; do # do sth done