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.
The script itself search 15 directories for specific types where a fileversion is greater than previous (Stored content) and dates fall into a specific range. I wanted to pass some arguments across, Date range, File type and additional search directory. This makes using an Alias very easy. RunAliasname Param1 Param2 Dir1
– Dave Hamilton Mar 15 '16 at 11:27