Bhanu72:
I when to my server and tryed the script and it did worked. But when ran into a diffrent server "ls -e" is not supported. I look into diffrence on SunOS and notice that the server not supporting "-e" option for "ls" is has lower patche level for SunOS 5.10. So I can only assure that this script may work on Sun Solaris 5.10 Generic_125100-10.
I changed the script to use "ls -l", but need to change the "cut" setting.
Code:
ls -l | egrep -v "/$|->" | cut -c31-41,55- | sort -n -k 1n,10 | cut
-c13- > /tmp/filelist~
When I don't understand a part of a code I run each part of the pipe command adding one part at a time so see that it is doing. With this suggested change to the script it must run. I ran it on a solaris 5.10 with lower patch level.
My best regards.
Luis Ramirez