'\" t .\" Title: look .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.20 .\" Date: 2024-04-27 .\" Manual: Órdenes de usuario .\" Source: util-linux 2.40 .\" Language: English .\" .TH "LOOK" "1" "2024-04-27" "util\-linux 2.40" "Órdenes de usuario" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NOMBRE" look \- mostrar las líneas que comienzan por una cadena dada .SH "SINOPSIS" .sp \fBlook\fP [options] \fIstring\fP [\fIfile\fP] .SH "DESCRIPCIÓN" .sp The \fBlook\fP utility displays any lines in \fIfile\fP which contain \fIstring\fP as a prefix. As \fBlook\fP performs a binary search, the lines in \fIfile\fP must be sorted (where \fBsort\fP(1) was given the same options \fB\-d\fP and/or \fB\-f\fP that \fBlook\fP is invoked with). .sp Si no se especifica \fIfichero\fP, se usa el fichero \fI/usr/share/dict/words\fP, solo se comparan caracteres alfabéticos y las mayúsculas y minúsculas se toman por igual. .SH "OPCIONES" .sp \fB\-a\fP, \fB\-\-alternative\fP .RS 4 Utiliza el fichero de diccionario alternativo. .RE .sp \fB\-d\fP, \fB\-\-alphanum\fP .RS 4 Utiliza el conjunto de caracteres y orden de diccionario normales, por ejemplo, sólo comparar espacios y caracteres alfanuméricos. Está activo de forma predefinida si no se especifica ningún fichero. .sp Nótese que los espacios se le han añadido al conjunto de caracteres del diccionario por compatibilidad con la orden \fBsort \-d\fP desde la versión 2.28. .RE .sp \fB\-f\fP, \fB\-\-ignore\-case\fP .RS 4 Tomar mayúsculas y minúsculas como iguales en caracteres alfabéticos.No tiene en cuenta que los caracteres estén en mayúsculas o minúsculas. Es así de forma predefinida si no se especifica ningún fichero. .RE .sp \fB\-t\fP, \fB\-\-terminate\fP \fIcarácter\fP .RS 4 Specify a string termination character, i.e., only the characters in \fIstring\fP up to and including the first occurrence of \fIcharacter\fP are compared. .RE .sp \fB\-h\fP, \fB\-\-help\fP .RS 4 Mostrar texto de ayuda y finalizar. .RE .sp \fB\-V\fP, \fB\-\-version\fP .RS 4 Print version and exit. .RE .sp La utilidad \fBlook\fP 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. .SH "ENTORNO" .sp \fBWORDLIST\fP .RS 4 Path to a dictionary file. The environment variable has greater priority than the dictionary path defined in the \fBFILES\fP segment. .RE .SH "FICHEROS" .sp \fI/usr/share/dict/words\fP .RS 4 el diccionario .RE .sp \fI/usr/share/dict/web2\fP .RS 4 el diccionario alternativo .RE .SH "HISTORIA" .sp La utilidad \fBlook\fP apareció en el Unix de AT&T versión 7. .SH "EJEMPLOS" .sp .if n .RS 4 .nf .fam C sort \-d /etc/passwd \-o /tmp/look.dict look \-t: root:foobar /tmp/look.dict .fam .fi .if n .RE .SH "VÉASE TAMBIÉN" .sp \fBgrep\fP(1), \fBsort\fP(1) .SH "INFORMAR DE ERRORES" .sp For bug reports, use the issue tracker at \c .URL "https://github.com/util\-linux/util\-linux/issues" "" "." .SH "DISPONIBILIDAD" .sp La orden \fBlook\fP forma parte del paquete util\-linux, el cual puededescargarse de \c .URL "https://www.kernel.org/pub/linux/utils/util\-linux/" "Linux Kernel Archive" "."