Hi All,
I need to remove the first 17 characters from a list of entries (containing 25 characters each).
I obtain the output from a select statement (mysql), which I then dump into a text file (called: DEVICE_LIST).
The serial number format is as follows (no spaces):
ABC200803140415218-XYZ567
Which is:
<CODE> <DATE> <TIME> <SERIAL>
<ABC> <20080314> <041521> <8-XYZ567>
I need to apply this to the DEVICE_LIST (100s of entries) and have the last 8 characters <SERIAL> remain (eg. 8-XYZ567).
What I want to achieve is something like: cat DEVICE_LIST | sed -e 's/first 17 chars//g' > NEW_LIST
Please assist.
Thank you
Start Free Trial