title: Bash - cat in a hidden . file or write to it
body: <p>Let's say I make a file .history.txt:</p>
  
  <pre><code>touch .history.txt
  </code></pre>
  
  <p>and I try to write to it:</p>
  
  <pre><code>cat &gt; .history.txt
  </code></pre>
  
  <p>after having done that all I get is:</p>
  
  <pre><code>bash: .history.txt: is a directory
  </code></pre>
  
  <p>What I need is to be able to write some text to it like I would be able to any normal file. Any ideas what am I doing wrong?</p>