title: How to write JSON file using Bash?
body: <p>I'd like to write a JSON file using BASH but it seem's not working well..</p>
  
  <p>My code :</p>
  
  <pre><code>sudo echo -e "Name of your app?\n"
  sudo read appname
  sudo cat "{apps:[{name:\"${appname}\",script:\"./cms/bin/www\",watch:false}]}" &gt; process.json
  </code></pre>
  
  <p>Issue : <code>-bash: process.json: Permission denied</code></p>