Existem páginas de exemplo semelhantes às man pages?

0
man find

abre a página de manual para encontrar no meu pager.

Existe algo como

example find

que imprimiria

find /usr/lib -name "stdint.h"
    
por William Bettridge-Radford 30.07.2012 / 23:05

1 resposta

4

Is there a quick way to just print the examples?

Sim.

 man find | perl -ne 'print if /^EXAMPLE/.../^[A-Z]/'

Soluções semelhantes devem existir usando awk etc

 man find | awk '/^EXAMPLES/,/^EXIT/ { print }'
    
por 30.07.2012 / 23:24

Tags