Shell scripting

Hi guys,
I need to make a shell script named test X Y (X is a string and Y is a valid positive integer) which traverses the $ PATH variable and writes all the executables in the $PATH directories that contain the given string parameter X, which were accessed in Y last minutes, giving the desired subtrees. I must use the find command for this script.

anybody can help?

thanks

Sounds like a homework assignment, in which case your resources for help are reference materials from the class and your TA.

Show us what you have come up with so far.

Cheers,
D.

Here’s what i’ve got so far…
what do you think?

#!/bin/bash
IFS=:

for i in $PATH
do
find . -maxdepth 1 -amin -$1 -name $2
done