Skip to content

How to split a large file into multiple smaller files in Linux

How to split a large file into multiple smaller files in Linux

Answer:

If you have a very large file and want to split into multiple smaller files, split command can do the job for you.

# split -l 10 text.txt

The above command split the file text.txt into a multiple files (xaa, xab, xac...), which contains at most 10 lines per file.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  1. Split a string into array in Perl
  2. Print large banner on printer
  3. How to use pipe in Linux
  4. How to combine the output of multiple commands into a single file?
  5. How to determine the type of a file in Linux

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*