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.

4
  • if the columns are evenly spaced and length-wise fixed, you can try using cut -c 11-36 (assuming 2nd field is 25 characters, didn't count it) to extract the data. Likewise for the other fields Commented Feb 26, 2016 at 15:01
  • @MelBurslan Thanks for your quick response :) .. I have tried cut -c it extracts fields eventhough there are white spaces but the problem that it's displayed vertically .. I want it to be written horizentally as the example above. Commented Feb 26, 2016 at 15:14
  • yes @don_crissti Commented Feb 26, 2016 at 15:28
  • How are fields defined? Is it a tab-separated file? Commented Feb 26, 2016 at 18:30