14linux 往目录输入文件流生成文件
#!/bin/bash cat > my_python_script.py <<EOF #!/usr/bin/env python3 print("Hello, World!") print('This is a Python script with both "double" and \'single\' quotes.') EOF
可以是任意文本文件
#!/bin/bash cat > my_python_script.py <<EOF #!/usr/bin/env python3 print("Hello, World!") print('This is a Python script with both "double" and \'single\' quotes.') EOF
可以是任意文本文件