Sample Header Ad - 728x90

How to split files with numeric names?

3 votes
1 answer
8742 views
I'm trying to split text file into files of 1024 lines, so I ran split with the -d switch: split -d -l 300 ./list.lst I get some weird names: they start with x and the file names jump from x89 to x9000. I want the files to be named like that: 1.lst 2.lst 3.lst ... Thanks.
Asked by Adel M. (358 rep)
Jan 6, 2019, 01:01 AM
Last activity: Jan 6, 2019, 06:04 AM