-2

Hello i want to extract each line count to a file by command.

4495125 94307025    giovy115p@live.it   94307025.094307025  12443
stazla  deva1a23@gmail.com  1992/.:\1
1447585 gioao_87@hotmail.it h1st@1
saknit  tomboro@seznam.cz   1233    1990
_______________________________________________________
5column.txt
4495125 94307025    giovy115p@live.it   94307025.094307025  12443
_______________________________________________________
4column.txt 
saknit  tomboro@seznam.cz   1233    1990
_______________________________________________________
3column.txt 
stazla  deva1a23@gmail.com  1992/.:\1
1447585 gioao_87@hotmail.it h1st@1

i need code to do this job please!!

1 Answers1

0

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.

RavinderSingh13
  • 130,504
  • 14
  • 57
  • 93