<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Echo :: Ay Docs</title>
    <link>https://ops.docs.72602.space/linux/command/echo/index.html</link>
    <description>在Windows批处理中（使用ECHO命令） ECHO 这是要写入的内容 &gt; filename.txt ECHO 这是要追加的内容 &gt;&gt; filename.txt 在Linux/macOS Shell中 echo &#34;这是要写入的内容&#34; &gt; filename.txt echo &#34;这是要追加的内容&#34; &gt;&gt; filename.txt 在Python中 # 写入文件（覆盖） with open(&#39;filename.txt&#39;, &#39;w&#39;, encoding=&#39;utf-8&#39;) as f: f.write(&#34;这是要写入的内容\n&#34;) # 追加内容 with open(&#39;filename.txt&#39;, &#39;a&#39;, encoding=&#39;utf-8&#39;) as f: f.write(&#34;这是要追加的内容\n&#34;) 在PowerShell中 &#34;这是要写入的内容&#34; | Out-File -FilePath filename.txt &#34;这是要追加的内容&#34; | Out-File -FilePath filename.txt -Append 在JavaScript (Node.js) 中 const fs = require(&#39;fs&#39;); // 写入文件（覆盖） fs.writeFileSync(&#39;filename.txt&#39;, &#39;这是要写入的内容\n&#39;); // 追加内容 fs.appendFileSync(&#39;filename.txt&#39;, &#39;这是要追加的内容\n&#39;);</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate></lastBuildDate>
    <atom:link href="https://ops.docs.72602.space/linux/command/echo/index.xml" rel="self" type="application/rss+xml" />
  </channel>
</rss>