No puede seleccionar más de 25 temas
Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
|
- #!/bin/bash
- # Usage: nicegrep NICE MAXMEMORY ARG...
- # Executes grep with the provided arguments using `nice -n NICE` and `ulimit -v MAXMEMORY`
- nice="$1"; shift
- maxMemory="$1"; shift
- if [[ "${maxMemory}" != '0' ]]; then ulimit -v "${maxMemory}"; fi
- exec nice -n "${nice}" grep "$@"
|