title: How to add a space after special characters in bash script?
body: <p>I have a text file with something like,</p>
  <pre><code>!aa
  @bb
  #cc
  $dd
  %ee
  </code></pre>
  <p>expected output is,</p>
  <pre><code>! aa
  @ bb
  # cc
  $ dd
  % ee
  </code></pre>
  <p>What I have tried, <code>echo &quot;${foo//@/@ }&quot;</code>.</p>
  <p>This does work fine with one string but it does not work for all the lines in the file. I have tried with this while loop to read all the lines of the file and do the same using echo but it does not work.</p>
  <pre><code>while IFS= read -r line; do
      foo=$line
      sep=&quot;!@#$%&quot;
      echo &quot;${foo//$sep/$sep }&quot;
  done &lt; $1
  </code></pre>
  <p>I have tried with awk split but it does not give the expected output. Is there any workaround for this? by using awk or sed.</p>