Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 2
    Can you provide the data in your script and add it your question? Commented Feb 28, 2019 at 15:28
  • 1
    What operation does the script perform on the variable? How are you splitting it? What is the error exactly? Commented Feb 28, 2019 at 15:33
  • I am assigning an SQL script to that variable and thereafter running the psql command to execute the SQL script on postgresql database. The SQL script which is assigned to the variable contains around 50 t0 75 lines. Commented Feb 28, 2019 at 16:28
  • 1
    @SrinivasKamalanathanAttipatt please show - don't tell. In particular, things like how you are assigning values and whether you are properly quoting the string expansion may affect the answer. You can use the edit button to revise your question. Commented Feb 28, 2019 at 17:11