
Exploring permutations and a mystery with BSD and GNU split filenames
Recently, I was playing around with the split command-line tool on Mac OS X, and I decided to chop a 4000-line file into 4000 separate single-line files. However, when I attempted to run split -l1, I ran into a funny error: split: too many files Curious to see if any splitting had occurred, I ran ls and sure enough, a huge list of filenames appeared, such as: xaa xab ... xzy xzz Now I could see why you’d run out of unique filenames - there are only 26 letters in the alphabet and these filenames were only three letters long....