how to write a unix shell script?
I need to find in the /usr/bin all the files that has any charater as its fourth carater except a lowercase x or -. How do you write a shell script using the KornShell to do that using grep. example -r-xr-xr-x or drwxr-xr-x. I have tried this but it does not work.
ls -l /usr/bin|grep '^...[^x-]......$'|sort -r|uniq|wc -l
what am I doing wrong?
Steve, August 2005