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*

5
  • do you always want the last column and does the last column always have values enclosed in "{}"? Commented Oct 20, 2016 at 8:38
  • if above is true, try sed 's/.*{\|}"//g' input.csv Commented Oct 20, 2016 at 8:40
  • No It is not the last column.It is a column at the third position Commented Oct 20, 2016 at 8:42
  • 1
    cut -d\" -f2 input.csv | tr -d [{}] Commented Oct 20, 2016 at 8:43
  • cut -d , -f-2,5- input.csv | tr -d [}\"] Commented Oct 20, 2016 at 8:45