table of contents
- bullseye-backports 4.18.1-1~bpo11+1
- testing 4.18.1-1
- unstable 4.18.1-1
LOOK(1) | Órdenes de usuario | LOOK(1) |
NOMBRE¶
look - muestra las líneas que comienzan por una determinada cadena
SINOPSIS¶
look [opciones] cadena [fichero]
DESCRIPCIÓN¶
The look utility displays any lines in file which contain string. As look performs a binary search, the lines in file must be sorted (where sort(1) was given the same options -d and/or -f that look is invoked with).
Si no se especifica fichero, se usa el fichero /usr/share/dict/words, solo se comparan caracteres alfabéticos y las mayúsculas y minúsculas se toman por igual.
OPCIONES¶
- -a, --alternative
- Emplea el diccionario alternativo
- -d, --alphanum
- Use normal dictionary character set and order, i.e., only blanks and
alphanumeric characters are compared. This is on by default if no file is
specified.
Note that blanks have been added to dictionary character set for compatibility with sort -d command since version 2.28.
- -f, --ignore-case
- Ignore the case of alphabetic characters. This is on by default if no file is specified.
- -t, --terminate character
- Specify a string termination character, i.e., only the characters in string up to and including the first occurrence of character are compared.
- -V, --version
- Muestra información acerca de la versión y finaliza.
- -h, --help
- Muestra un texto de ayuda y finaliza.
La utilidad look termina con valor 0 si una o más líneas fueron encontradas y mostradas, 1 si no se encontró ninguna y >1 si ocurrió un error.
ENTORNO¶
- WORDLIST
- Path to a dictionary file. The environment variable has greater priority than the dictionary path defined in FILES segment.
ARCHIVOS¶
- /usr/share/dict/words
- el diccionario
- /usr/share/dict/web2
- el diccionario alternativo
HISTORIAL¶
look apareció por primera vez en Unix Version 7 de AT&T.
EJEMPLOS¶
sort -d /etc/passwd -o /tmp/look.dict look -t: root:foobar /tmp/look.dict
VÉASE TAMBIÉN¶
DISPONIBILIDAD¶
The look command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/.
TRADUCCIÓN¶
La traducción al español de esta página del manual fue creada por Juan José López Mellado <laveneno@hotmail.com> y Marcos Fouces <marcos@debian.org>
Esta traducción es documentación libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD.
Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a debian-l10n-spanish@lists.debian.org.
Junio de 2011 | util-linux |