But I want to then determine if the file has execute permission for the file owner.
How could i do that?
Is there a way to then after it did the command above, to select a certain value from it eg:
-rwSr-Sr-- 1 philip philip 126 2008-10-01 17:15 test.java
It's "and". man test for the full scoop. It's a kitchen-sink utility for comparing various things; the shell itself is weak on those operations (although in some modern shells, test is a built-in command).