Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There's a non-Perl solution that you might find interesting...</p> <pre><code>$ split -l 100 -a6 /home/username/public/wordlists/Big-File-Of-Words.txt words. </code></pre> <p>This will split your big file of words into a bunch of files with no more than 100 lines each. The file name will start with <code>words.</code>, and the suffix will range from <code>aaaaaa</code> to <code>zzzzzz</code>. Thus, you'll have <code>words.aaaaaa</code>, <code>words.aaaaab</code>, <code>words.aaaaac</code>, etc. You can then recombine all of these files back into your word list like this:</p> <pre><code>$ cat words.* &gt; reconstituted_word_list.txt </code></pre> <p>Of course, you want to eliminate spaces, and lowercase the words all at the same time:</p> <pre><code>$ WORD_LIST=/home/username/public/wordlists/Big-File-Of-Words.txt $ sed 's/ *//g' $WORD_LIST | tr '[A-Z]' '[a-z]' | split -l 100 -a6 - words. </code></pre> <p>The <code>tr</code> is the transformation command, and will change all uppercase to lower case. The <code>split</code> splits the files, and <code>sed</code> removes the spaces.</p> <p>One of Unix's big strengths was its file handling ability. Splitting up big files into smaller pieces and reconstituting them was a common task. Maybe you had a big file, but a bunch of floppy disks that couldn't hold more than 100K per floppy. Maybe you were trying to use UUCP to copy these files over to another computer and there was a 10K limit on file transfer sizes. Maybe you were doing FTP by email, and the system couldn't handle files larger than 5K.</p> <p>Anyway, I brought it up because it's probably an easier solution in your case than writing a Perl script. I am a big writer of Perl, and many times Perl can handle a task better and faster than shell scripts can. However, in this case, this is an easy task to handle in shell.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload