omgclayaiken — 2010-01-24T17:37:54-05:00 — #1
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?
dan_grossman — 2010-01-24T17:57:03-05:00 — #2
Sounds like a homework assignment, in which case your resources for help are reference materials from the class and your TA.
disgracian — 2010-01-24T18:13:32-05:00 — #3
Show us what you have come up with so far.
omgclayaiken — 2010-01-25T15:12:50-05:00 — #4
Here's what i've got so far...
what do you think?
for i in $PATH
find . -maxdepth 1 -amin -$1 -name $2