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
  • yeah, run awk '{t=$0;sub(/.*\\n/, "", t);sub(/ .*/, "", t);print $1, $2, $5, substr($6, 4, length($6)-4), substr($11, 4, length($11)-4), t}' ... the t, sub, sub extracts the error code, the rest is self-explanatory - print the respective fields except for $6 and $11 where it extracts only part of the field and prints the result Commented Feb 14, 2017 at 19:13
  • I am not having any other answer except thanking you. If you don't mind let me know how can i master in awk and sed ? Commented Feb 14, 2017 at 19:21
  • well, read the manuals (both gnu sed and gnu awk manuals can be downloaded as pdf) & practice at the same time; just like with anything else in life, you have to crawl before you walk :) ... so start with simple tasks and work your way up as your skills improve Commented Feb 14, 2017 at 19:27
  • Great food for thought :) Commented Feb 14, 2017 at 19:32