I would need a command for finding first 15000 of the file names whose 25th postion is 5 in the current directory alone.
I do have this painful command
find . -name '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]5*' | head -15000 | cut -c3-
please refine this.
Of course the above command also searches in the sub directories which I dont want.
please dont use 'maxdepth' since it would not work on my unix.
appreciate your help!