Archives for March, 2011

30
Mar

A Quick Usage Example of the Split Command

Have a file that needs to be split into pieces? Here’s a quick example of splitting the text file “test.txt” containing an arbitrary number of lines into several files each with 10 lines a piece and named “split_aa, split_ab, split_ac, …”.

cat test.txt | split -l 10 - split_

If you’d like to use numeric suffixes instead of alphabetic, use the ‘-d’ option in split. There’s more tips and tricks where that came from in the split man page, so be sure to check it out.

14
Mar

I’m Not Dead…

To my subscribers: I’m not dead. I’m just really busy livin’ part of life. I’ve gotten some material saved up, so now it’s just a matter of getting it polished for public consumption. I’ll get back in the game soon. ;-)