Hi I have a simple request but can't find the answer. I want to remove trailing zeros, and in some cases the fullstops, from the input data. Example of input file:
Thanks very much for the replys :). I originally mucked around with a few pieces of code such as:
sed 's/\(\.[1-9][1-9]\)0/\1/' inputfile
and
awk '{gsub(/\.000/,"",$1); print $1}' inputfile
I couldn't get an overall solution. Couldn't get the sed code to work either, not sure what I was doing wrong. Anyway, will test solutions tomorrow when at work. Thanks again for your input.