tech:shell_script_-_exemple_de_wrapper_-_exec_rgrep
Shell script - exemple de wrapper - exec rgrep
Voir aussi wrapper compilés :
- /usr/lib64/nagios/plugins/negate
/usr/bin/rgrep
#!/bin/sh exec grep -r "$@"
/bin/fgrep
#!/bin/sh exec grep -F "$@"
Voir man bash
ou avec une fonction
function rgrep() { grep -r "$@" }
Autre exemple
tar () { command tar "$@" --no-same-owner --no-same-permissions; return $?; }
tech/shell_script_-_exemple_de_wrapper_-_exec_rgrep.txt · Dernière modification : de Jean-Baptiste
