MitchBroadhead
asked on
using sed to select csv field and remove first (leading) character
Having exported data from an MS Access database to csv format I have now realised that the currency fields are in format ...,£1234.56,...
Once the csv file is shifted onto Linux and the command "head --lines=10 file.csv" is run the system seems incapable of reading the £ sign and it looks like a blank space. However when I try and copy and paste any part of the output which contains the 'space' it will not function (any other part of the output can be copied and pasted).
Is there some way sed can strip this unknown character out of the csv, or is there alternatively some way to make Linux recognise this character correctly?
By the way, changing the fields to not be currency in MS Access is not an option.
Thanks in advance
Once the csv file is shifted onto Linux and the command "head --lines=10 file.csv" is run the system seems incapable of reading the £ sign and it looks like a blank space. However when I try and copy and paste any part of the output which contains the 'space' it will not function (any other part of the output can be copied and pasted).
Is there some way sed can strip this unknown character out of the csv, or is there alternatively some way to make Linux recognise this character correctly?
By the way, changing the fields to not be currency in MS Access is not an option.
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.