I have a column name "Location" which has 1000 entries. Below are 2 of the entries.

OS:J:\output\Windows\System32\winevt\Logs\Security.evtx OS:J:\output\Windows\System32\winevt\Logs\System.evtx

What i want is awk/sed should read the line backwards and print everything after first delimiter \ The output should have a new column name say Location_type with values as



marked as duplicate by Freddy, DopeGhoti, Jeff Schaller bash May 31 at 21:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Is this homework, or are you creating multiple accounts and reposting the same question repeatedly? – DopeGhoti May 31 at 21:57
  • nopes! its not homework! i was not able to add comments on my previous similar question. Therefore created a new one! – Shalabh May 31 at 21:58

Browse other questions tagged or ask your own question.