split shell command

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:13 UTC
Read the original article Hit count: 306

Filed under:
|

I want 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 files with the filenames like rc_01, rc_02, etc.?

© Super User or respective owner

Related posts about shell

Related posts about split