title: Getting file not found error because of escape character
body: <p>I am trying to execute the below spark-shell command in Linux terminal through java code.</p>
  
  <pre><code>echo spark.sparkContext.parallelize\(1 to 3,3\).map\(x =&gt; \
  (x,\"city_\"+x\)\).toDF\(\"num",\"city\"\).write.partitionBy\(\"num\"\).mode\
  (SaveMode.Overwrite\).parquet\(\"/tmp/abinash\"\) | /opt/ab/cd/de/spark-shell
  </code></pre>
  
  <p>But getting "No such file or directory" error for /tmp/abinash even if file exist</p>
  
  <p>I tried so many ways to solve this. But did not get any success.
  I assume there is an issue with escape character.</p>
  
  <p>Can anyone help me with this what i am doing wrong here.</p>