Professional Documents
Culture Documents
The command `find $D -perm -u=rx -type f` will find all the
files in directory $D with read (r) and excute (x) permissions
The command could also be written as `find $D -perm -500 -type
f` A second alternative is the test command with the options -f
-r -x Reversed apostrophes around a command make it so that
their content (initially the command itself) is replaced by the
output of the command
Now, start from the parent directory and the first 5 lines:
$ ./shell1.sh .. 5