I am able to list all the filenames under a directory & its sub-directories except blent.tar on Linux
find "/tmp/" -type f | grep -v blent.tar | rev | cut -d '/' -f1 | rev
Desired Output:
THIRDPARTYLICENSEREADME.txt
javaws
libjavaplugin_oji.so
libjavaplugin_oji.so
sun_java.png
sun_java.desktop
But this command does not work on Solaris
bash-3.2$ find "/tmp/" -type f | grep -v blent.tar | rev | cut -d '/' -f1 | rev
bash: rev: command not found
bash-3.2$ uname -a
SunOS mymac 5.10 Generic_150400-40 sun4v sparc sun4v
I don't wish to use PERL
How can I get a generic command to give me the desired output on both Solaris and Linux ? If a generic command is not possible can you let me how can I get the desired output on Solaris ?