littleIdiot
MIS
Hi,
I am using the 'cut' command to take a column of data out of a file and then need to process the results.
However the results need to be integers, and some of the values have text characters in.
I need to take all integers from the left of my output.
Example output:
Example required:
I have tried using typeset but this does not seem to work - it just gives a syntax error.
I can not edit the file before hand, and I cannot change my cut command to cut from the 'correct' column.
Any ideas?
Thanks.
I am using the 'cut' command to take a column of data out of a file and then need to process the results.
However the results need to be integers, and some of the values have text characters in.
I need to take all integers from the left of my output.
Example output:
Code:
88PL 69
88PL 70
88PL 71
...[skip]
88PL1098
88PL1099
88PL1100
Example required:
Code:
69
70
71
...[skip]
1098
1099
1100
I have tried using typeset but this does not seem to work - it just gives a syntax error.
I can not edit the file before hand, and I cannot change my cut command to cut from the 'correct' column.
Any ideas?
Thanks.