Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
|
- #!/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 "$@"
|