# The next line will create a temporary file and return its path. path="$(mktemp)" echo "Hello, World!" > "$path"