split function

Hi all!
I am relatively new to UNIX staff, and I have come across a problem:
I have a big directory, which contains 100 smaller ones. Each of the 100 contains a file ending in .txt , so there are 100 files ending in .txt
I want to split each of the 100 files in smaller ones, which will contain 2000 lines each.
I think that 'split' command is what I must use, but I don't know how.
I go something like:

find . -name "*.txt" | .....

Any hints on the missing part? How can I apply the split command in each file, without entering each directory?
Thanx

Lets say you want to split your files into files of 10 lines each.

find . -name '*.txt' -exec split -l 10 {} \;

man split for other options.

Hi, thanx very much for your time.
Excuse my foolish question, but what are {} \ in your code?

find . -name '*.txt' -exec split -l 10 {} \;

I understand 'find - name '*.txt' ', I suppose -exec is for the system to execute a command, -l 10 I have found it in man split that are the arguments passed for split, but {} and \ I don't understand.
I tried your code, but it didn't work :frowning:
I am sure that I am lacking something here, if you could just point it out...

Sorry, it needed :

find . -name '*.txt' -exec split -l 10 {} {} \;

Thanx again!

It may depend on your version on UNIX, but under HP-UX

find . -name '*.txt' -exec split -l 10 {} \;

is working fine!