How do I get only the first 8 characters of a string to print?
I'm trying:
echo "12345678.msytring.ext" | sed '/[A-Z,a-a,0-9][A-Z,a-a,0-9][A-Z,a-a,0-9][A-Z,a-a,0-9][A-Z,a-a,0-9][A-Z,a-a,0-9][A-Z,a-a,0-9][A-Z,a-a,0-9]/';
But I'm obviously not doing it right.
Thanks,
Jeff
I'm trying:
echo "12345678.msytring.ext" | sed '/[A-Z,a-a,0-9][A-Z,a-a,0-9][A-Z,a-a,0-9][A-Z,a-a,0-9][A-Z,a-a,0-9][A-Z,a-a,0-9][A-Z,a-a,0-9][A-Z,a-a,0-9]/';
But I'm obviously not doing it right.
Thanks,
Jeff