Thanks for your reply.In fact,the script is going to run on two processor TRU64 machine, and the size of the file i want to search is over 500M.So I thought that using fork might speed up my search.
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction