IN="$(mktemp --suffix .k)" cat > "$IN" # Because ngn/k wants a trailing new line. echo " " >> "$IN" k "$IN"