title: BASH: unescape string
body: <p>Suppose I have the following string: </p>
  
  <pre><code>"some\nstring\n..."
  </code></pre>
  
  <p>And it displays as one line when catted in bash. Further, </p>
  
  <pre><code>string_from_pipe | sed 's/\\\\/\\/g' # does not work
  | awk '{print $0}'
  | awk '{s = $0; print s}'
  | awk '{s = $0; printf "%s",s}'
  | echo $0  
  | sed 's/\\(.)/\1/g'
  # all have not worked. 
  </code></pre>
  
  <p>How do I unescape this string such that it prints as: </p>
  
  <pre><code>some
  string
  </code></pre>
  
  <p>Or even displays that way inside a file?</p>