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

可以是任意文本文件

posted @ 2024-03-12 10:34  冷夜O  阅读(12)  评论(0)    收藏  举报