title: star wildcard in bash
body: <p>I've got a small problem with my bash script. I try to change file name in current directory for whole files with <code>txt</code> extension to <code>text</code> extension. For exampel <code>1.txt</code> to <code>1.text</code> </p>
  
  <p>My script looks like this now:</p>
  
  <pre><code>#!/bin/bash
  FILES=`ls /home/name/*.txt`
  NAME=*.txt
  RENAME=*.text
  
  for file in FILES
  do 
  mv $NAME $RENAME
  done
  </code></pre>
  
  <p>i try whole combination with single, double quotes and backticks and I receive errors all the time.</p>
  
  <p>Do you have some ideas how to receive wildcards "*" in bash? </p>
  
  <p>Thanks.</p>