For column 2 in my input files I want to keep the part after the hyphen. I have tried a cut command, but don't know how to apply this to the second column only:
echo TCCCATATGGTCTAGCGGTTAGGATTCCT 1-230823 | cut -d - -f 2
230823
Input:
TCCCATATGGTCTAGCGGTTAGGATTCCT 1-230823
GCATTGGTGGTTCAGTGGTAGAATTCTC 2-172580
Out:
TCCCATATGGTCTAGCGGTTAGGATTCCT 230823
GCATTGGTGGTTCAGTGGTAGAATTCTC 172580