title: How to empty(delete all contents) all files in a directory without deleting the files?
body: <p>Let's say i have 1000 <code>txt</code> files and I have to empty all the contents inside the file and keep just 1000 files with no content in it.
  I was trying to use <code>cat /dev/null &gt; *.txt</code> in shell but i was getting -<code>bash: *.txt: ambiguous redirect</code> and the files were not emptied.Any suggestions please ? </p>