Unix/Linux Go Back    



Remove the leading and trailing date from a CSV file

Shell Programming and Scripting




Kindly Note - This is a Single User Post by Forum Member rdrtx1 Regarding:
Remove the leading and trailing date from a CSV file.
Please Follow The Primary Link Above to View the Full Discussion.

   
Old Unix and Linux 07-12-2017
rdrtx1 rdrtx1 is offline
Registered User
 
Join Date: Sep 2012
Last Activity: 19 October 2017, 2:34 PM EDT
Location: Houston, Texas, USA
Posts: 971
Thanks: 0
Thanked 332 Times in 314 Posts

Code:
sed 's/[^_]*_//; s/_[^._]*[.]\(.*\)$/.\1/' infile

The Following User Says Thank You to rdrtx1 For This Useful Post:
shivamayam (07-12-2017)