title: How to remove white space using powershell in multiple text file in the same folder?
body: <p>folder name is: <code>c:\home\alltext\</code></p>
  <p>inside has: 2 text files with different names(each text contents extra whitespace that I want to trim)</p>
  <pre><code>   text1.txt
     text2.txt
  </code></pre>
  <p>I don't want to use notepad++ and do one by one text.txt if I have more than 2 command.</p>
  <p>I tried PowerShell it returns both text1 and text2 together in same one text.txt.</p>
  <p>How can I trim them in one command and return individual txt?
  This is my command:</p>
  <pre><code>(get-content c:\home\alltext\*.txt).trim() -ne '' | Set-content c:\home\alltext\*.txt
  </code></pre>