GNU awk supports a sub-string extraction function to return a fixed length character sequence from a main string. The syntax is
*substr(string, start [, length ])*
where, string is source string and start marks the start of the sub-string position you want the extraction to be done for an optio...