Originally posted by: chandru0078
Dear All
Please can anyone help to enhance below scripts.I getting "/usr/bin/mv: 0403-027 The parameter list is too long" error when executing below script.So i have tired to change ulimit -f to unlimited but still same .Some people suggested to use xargs but I'm not sure how to apply in my script.
#################################################
#!/bin/ksh
export time=`date +%y%m%d`
/usr/bin/mkdir /nmonlog/nmon$time
mv /nmonlog/PRDWLCA2_$time_* /nmonlog/nmon$time
/usr/bin/tar -cvf nmon$time.tar nmon$time
/usr/bin/gzip nmon$time.tar
/usr/bin/rm -rf nmon$time
################################################
find /nmonlog -name 'PRDWLCA2_$time_*' -exec mv {} /nmonlog/nmon$time \;