How do i go about this.
For example, Lets say i have a script that:
pushd '\\PATH1\PATH2\SCANDIR';
find . -mtime -120 -name "*.exe" -exec stat -c "%n %.19z" {} \;
What i would like to be able to do, Is run this script. But set -mtime
i.e. in console i would like to type in:
scriptname.sh -120
This would set -mtime to -120. How does one go about constructing the line to accept a parameter on the script.