edit this text file

hi,

i need to remove the first column (and dash) from this text file.

Is there any unix command allowing me to do it ?

 1-16 
 2-28 
 3-16 
 4-20 
 5- 8 
 6-32 
 7-19 
 8-16 
 9-27 
 10- 7 
 11-14 
 12-18 

thanks

The following command will display the desired content on the standard output:

cut -d- -f2 infile

If you want to edit the file in-place:

perl -i.bck -pe's/\d+-//' infile

you can go for this following by the help of awk:

awk -F "-" '{print $2}' infile

Regards,
Sanjay