Use this linux shell command to Get Display Number lines and write files

CODE:
nl