title: awk command runs fine until "backticks" are inserted
body: <p>I am trying to write a simple bash script to allow me to rename some tv show filenames that were poorly formatted (and aren't picked up by xbmc). I was able to get the awk command to print out what I want the output to be, but as soon as I throw it in the backticks (or the accent character) so I can incorporate the mv command, it errors out.</p>
  
  <p>The awk command I have working is as follows (there is a simple for loop above it to go through all the files in the directory).</p>
  
  <pre><code>echo $i | awk -F" " '{print $1 "\\ -\\ S0" $3 "E" $5 ".avi"}'
  </code></pre>
  
  <p>However, when I add the mv command to it,</p>
  
  <pre><code>mv $i `echo $i | awk -F" " '{print $1 "\\ -\\ S0" $3 "E" $5 ".avi"}'`
  </code></pre>
  
  <p>it errors out with the following.</p>
  
  <pre><code>awk: warning: escape sequence `\ ' treated as plain ` '
  </code></pre>
  
  <p>As far as I know, I need the backslashes in there for the mv command to work properly.</p>
  
  <p>The input formats for the filenames are </p>
  
  <pre><code>Showname Season 1 Episode 01 - Episode Title.avi
  Show Name Season 1 Episode 01 - Episode Title.avi
  </code></pre>
  
  <p>I want it to be</p>
  
  <pre><code>Showname - S01E01 - Episode Title.avi
  Show Name - S01E01 - Episode Title.avi
  </code></pre>
  
  <p>I'm not too worried about the episode title being included (I couldn't find any simple way to include all the extra fields, and I have another program I use to move and name all my files anyway that will put the title there). There are some shows that have two words in their first name (so it could be Show Name), so my plan is to just adjust the script manually to work with the various fields.</p>
  
  <p>Are there any suggestions on how to get awk to work properly with the filename to prevent the error from coming up when I use the "backticks"?</p>