09 September 2012 1 414 Report

Can anyone suggest me single line command (specially sed or AWK) to divide each line of given file in equal number of part. For example divide each line in 4 or 3 equal part.

Example:

Input:

ATGCATHLMNPHLNTPLML

ALHCAPHLMNPHLNTPLMLG

Output:

ATGCA THLMN PHLNT PLML

ALHCA PHLMN PHLNT PLMLG

Similar questions and discussions