Tanto quanto sei, não existem ferramentas complementares para o comando info
. Mas se você quiser algo como whatis
é para man
, você pode criar suas próprias 'ferramentas'. Por exemplo, você pode criar algumas funções do shell (como um alias):
about () { info 2>/dev/null | sed -n 6,8p; }
ou talvez melhor:
inf () { info 2>/dev/null | grep "* :" | sed 's/ \+ /\t/g' | cut -f2; }
Algumas saídas:
$ about () { info 2>/dev/null | sed -n 6,8p; } $ #some outputs for 'about' function defined above $ about ls The 'ls' program lists information about files (of any type, including directories). Options and file arguments can be intermixed arbitrarily, as usual. $ about cp 'cp' copies files (or, optionally, directories). The copy is completely independent of the original. You can either copy one file to another, or copy arbitrarily many files to a destination directory. $ about yes 'yes' prints the command line arguments, separated by spaces and followed by a newline, forever until it is killed. If no arguments are given, it prints 'y' followed by a newline forever until killed. $ $ inf () { info 2>/dev/null | grep "* :" | sed 's/ \+ /\t/g' | cut -f2; } $ #some outputs for 'inf' function $ inf ls List directory contents. $ inf cp Copy files. $ inf cut Print selected parts of lines. $ inf grep Print lines matching a pattern. $ inf sed Stream EDitor.