Integrating your utility into the shell (linux)
write a script (name: jgrep, chmod to make it executable):#bin/bash
java -jar /var/lib/java/jgrep.jar $*
Put the script somewhere in the PATH (example: /bin/mygrep) and use it:
jgrep param1 param2
Integrating your utility into the shell (windows)
write a script (name: jgrep.bat):java -jar c:/java/lib/jgrep.jar %*
Put the script somewhere in the PATH (example: c:\windows\system32) and use it:
jgrep param1 param2