You will find the same with perl, or many other languages for that matter. As work load increases time to completion increases exponetially. As for the speed between the two I really have no idea but I know perl was made for file/directory reading and manipulation. I again have no idea about shell scripts but there comes a time with perl where you are better off forking to divide the work load.
On Mon, 4 Nov 2002 20:00:47 -0500 Joel Hammer <[EMAIL PROTECTED]> wrote: >Other posts have noted I have written bash scripts to read file names >and rename (mv) files to essentially sort them for the xv visual >schnauzer. > >These scripts are fine for 50 files, but, in working with hundreds of >files, the bash script is starting to seem slow. > >Perl, as I understand it, runs compiled. > >How much faster is perl than bash in reading directories, looping >through arrays, and and mv'ing? > >Or, would I be better of to just bite the bullet, and write these in C >? (I have minimal knowledge of C, but my evenings are free of late.) > >Thanks, >Joel _______________________________________________ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users