1
Whenever I run the script, the error message appears saying that the grep
was used in the wrong way, which is wrong in the script ?
Code:
#!/bin/bash
read $ALVO
RESULTADO=$(ps -A | grep $ALVO)
$RESULTADO kill -KILL
Error message:
sublime
Uso: grep [OPÇÃO]... PADRÃO [ARQUIVO]...
Experimente "grep --help" para mais informações.
kill: uso: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... ou kill -l [sigspec]
Note: Here the sublime was a test