[ad_1]
Following awk could help you in same.
awk '{print > NF"column.txt"}' Input_file
Output it will create 3 files named 5column.txt, 4column.txt and 3column.txt.
[ad_2]
solved awk or sed extract each number of column alone
[ad_1]
Following awk could help you in same.
awk '{print > NF"column.txt"}' Input_file
Output it will create 3 files named 5column.txt, 4column.txt and 3column.txt.
[ad_2]
solved awk or sed extract each number of column alone