split command on Ubuntu command-line

Posted by pedro on Super User See other posts from Super User or by pedro
Published on 2010-03-26T17:59:47Z Indexed on 2010/03/26 21:43 UTC
Read the original article Hit count: 420

Filed under:
|
|
|

I want to split a file into multiple files with at most 25 lines each.

I'm using this:

split -l 25 /etc/adduser.conf > /home/ubuntu/PL/trab3/rc_

But I do not get the files I expect.

How can I get files with filenames like rc_01, rc_02, etc.?

© Super User or respective owner

Related posts about ubuntu

Related posts about command-line