in reply to Perl Program to efficiently process 500000 small files in a Directory (AIX)
Would it be faster if you do reading and moving using a shell script?
Something like:
for afile in $dir/*; do achannel=$(awk -F'|' '{print $20}' "${afile}") mv "${afile}" "${outdir}/${achannel}" done
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl Program to efficiently process 500000 small files in a Directory (AIX)
by afoken (Chancellor) on Mar 17, 2018 at 18:42 UTC |
In Section
Seekers of Perl Wisdom