Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

look(1) [centos man page]

LOOK(1) 							   User Commands							   LOOK(1)

NAME
look - display lines beginning with a given string SYNOPSIS
look [options] string [file] DESCRIPTION
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) got the same options -d and/or -f that look is invoked with). If file is not specified, the file /usr/share/dict/words is used, only alphanumeric characters are compared and the case of alphabetic characters is ignored. OPTIONS
-a, --alternative Use the alternative dictionary file. -d, --alphanum Use normal dictionary character set and order, i.e. only alphanumeric characters are compared. (This is on by default if no file is specified.) -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. -h, --help Display help text and exit. -V, --version Output version information and exit. The look utility exits 0 if one or more lines were found and displayed, 1 if no lines were found, and >1 if an error occurred. EXAMPLE
sort -d /etc/passwd -o /tmp/look.dict look -t: root:foobar /tmp/look.dict FILES
/usr/share/dict/words the dictionary /usr/share/dict/web2 the alternative dictionary SEE ALSO
grep(1), sort(1) COMPATIBILITY
The original manual page stated that tabs and blank characters participated in comparisons when the alphanum option was specified. This was incorrect, and the current man page matches the historic implementation. HISTORY
The look utility appeared in Version 7 AT&T Unix. AVAILABILITY
The look command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. util-linux June 2011 LOOK(1)

Check Out this Related Man Page

XFCE4-DICT(1)															     XFCE4-DICT(1)

NAME
xfce4-dict -- a client program to query different dictionaries SYNOPSIS
xfce4-dict [option] [text ...] DESCRIPTION
xfce4-dict allows you to search different kinds of dictionary services for words or phrases and shows you the result. Currently you can query a "Dict" server(RFC 2229), any online dictionary service by opening a web browser or search for words using a spell check program like aspell, ispell or enchant. Homepage: http://goodies.xfce.org/projects/applications/xfce4-dict OPTIONS
If called without any arguments, the xfce4-dict main window is shown. Any passed text argument(s) are used as search text. -d, --dict Search the given text using a Dict server(RFC 2229). -w, --web Search the given text using a web-based search engine. -t, --text-field Grab the focus on the text field in the panel (has no effect if panel plugin is not loaded). -s, --spell Check the given text with a spellchecker. -i, --ignore-plugin Start stand-alone application even if the panel plugin is loaded. -c, --clipboard Grabs the PRIMARY selection content (X selection clipboard), uses it as search text and performs a search. This is useful when you want to create keyboard shortcuts for this command. The search method can be specified with the -d, -w and -s options, if not specified the default search method is used. If the PRIMARY clipboard doesn't contain any text, the normal clipboard is used. -v, --verbose Be verbose (print useful status messages). -V, --version Show version information. -?, --help Show help information and exit. xfce4-dict supports all generic GTK options, a list is available on the help screen. BUGS
There is a limitation of max. 12 characters in passing a search term to xfce4-dict when the panel plugin is loaded. That is, if you pass a search term as command line argument(s) to xfce4-dict which is longer than 12 characters, it is truncated. To be exact, the limit is 12 bytes so if the search term contains any non-ASCII characters it might be even less than 12 characters. To work around this limitation, you can add the command line '-i' so that xfce4-dict will start a single stand-alone application. Then all passed text is used as search term. AUTHOR
This manual page was written by Enrico Troeger. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2, or (at your option) any later version. xfce4-dict 0.6.0 December 31, 2009 XFCE4-DICT(1)
Man Page