looking for speed-up ideas
Ram Bhamidipaty
ramb at sonic.net
Tue Feb 4 01:10:59 EST 2003
> William Park wrote:
> > Behold:
> > egrep '^F' dumpfile | sort -t '/' -n -k 2,2 | tail -200
> > How fast does it run?
>
>
> That was my first thought too. The problem is that it doesn't
> keep track of the directory names, which is needed to display
> the full path name, which I believe he dumps in
>
> for t in all_file_list:
> print t[2], t[1], get_dir_name(t[3])
>
> It's too bad he didn't include example output.
Here is the output that is generated (with a few modifications
from the original script):
276 name/bob/testing/BUILD_FLAGS
414 name/bob/testing/.envrc
3861 name/bob/testing/build_envrc
36505 name/bob/testing/make.incl
3150900 name/bob/big_file.tar.gz
More information about the Python-list
mailing list