kill command SIGKILL vs SIGTERM [дубликат]

Una forma robusta de enviar mensajes:

de forma segura y opcionalmentegrep

echo something | grep e || [[ $? == 1 ]] ## print 'something', $? is 0
echo something | grep x || [[ $? == 1 ]] ## no output, $? is 0
echo something | grep --wrong-arg e || [[ $? == 1 ]] ## stderr output, $? is 1

Según manual posix , código de salida:

  • 1significa que no hay líneas seleccionadas.
  • > 1significa un error.

418
06.08.2018, 06:32
0 ответов

Теги

Похожие вопросы