I am trying to extract a pattern in shell script.I have the below variable with date format(yyyyMMdd) has value.
field=20200825
Here i want to extract the date,month,year. In case of months if 0 is prefixed, for e.g if 08 is there i need only 8 to be extracted from it.
Can anybody help me on this?