The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX Desktop for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 05-19-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
If the result contains spaces, you will need to quote the backticks, too.

Code:
year="$(echo "$zf" | cut -c185-188)"
car="$(echo "$zf" | cut -c189-230)"
echo `echo` as seen above is obviously a redundant, Useless Use of Echo in Backticks.
Reply With Quote