look(1) General Commands Manual look(1)Name
look - find lines in sorted data
Syntax
look [-df] string [file]
Description
The command consults a sorted file and prints all lines that begin with string. It uses binary search. B
Options
The options d and f affect comparisons as in If no file is specified, is assumed with collating sequence -df.
-d Uses dictionary order: only letters, digits, tabs and blanks can be compared.
-f Folds uppercase to lowercase (compares equally).
Files
/usr/dict/words
See Alsogrep(1), sort(1)look(1)
Check Out this Related Man Page
look(1) User Commands look(1)NAME
look - find words in the system dictionary or lines in a sorted list
SYNOPSIS
/usr/bin/look [-d] [-f] [-tc] string [filename]
DESCRIPTION
The look command consults a sorted filename and prints all lines that begin with string.
If no filename is specified, look uses /usr/share/lib/dict/words with collating sequence -df.
look limits the length of a word to search for to 256 characters.
OPTIONS -d Dictionary order. Only letters, digits, TAB and SPACE characters are used in comparisons.
-f Fold case. Upper case letters are not distinguished from lower case in comparisons.
-tc Set termination character. All characters to the right of c in string are ignored.
FILES
/usr/share/lib/dict/words spelling list
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
SEE ALSO grep(1), sort(1), attributes(5)SunOS 5.10 29 Mar 1994 look(1)
Hi there,
I am wondering if by logging in to a unix system, if it is possible to get the IP address of the machine I am connecting FROM.
I know how I can do this using the name server, but is this possible without a host lookup?:confused:
Thanks,
-ghoti (15 Replies)
Hi
I try to configure snedmail as smtp for my solaris box. if the useres are local there's no problem everything's working fine, but is it outside, sendmail says it could find the host. why?! all other tools find diffrent host?
Could anyone tell me how I set up an easy mx ? So I test it with... (29 Replies)
Hi All.,
i have a problem. I hope i can get some help on this issue here;
i have 2 txt files say file1 and file 2
file1 has;
WLMT:XXXXXXXX:cp
DOLR:YYYYYYY:ascii,unblock
WLG:TTTTTTT:dd:73:ascii,unblock
MAR:SSSSSS:dd:152:ascii,unblock
GGG:QQQQQQQQQQ:112:ascii,unblock
EIE:CCCCCCCC:cp... (17 Replies)
how would you get SED to do the following, say you have the following lines in a text file:
user=tigger
some text some text
some text some text
some text some text
user=ted
some text some text
some text some text
some text some text
user=thekingofrockandroll
you want to find any line... (15 Replies)
Hi guys,
can someone please help me with a vlookup utility in shell script that does the work similar to Excel.
Ex:
If File1.txt is
1
2
11
4
12
and File2.txt is
1 tab1
2 tab2
3 tab3
4 tab4
5 tab5
then the utility should create File3.txt with the below mentioned output: (24 Replies)
file 1
Sun Mar 17 00:01:33 2013 submit , Name="1234"
Sun Mar 17 00:01:33 2013 submit , Name="1344"
Sun Mar 17 00:01:33 2013 submit , Name="1124"
..
..
..
..
Sun Mar 17 00:01:33 2013 submit , Name="8901"
file 2
Sun Mar 17 00:02:47 2013 1234 execute SUCCEEDED
Sun Mar 17... (24 Replies)
I have a file that I need to find each interface that has move-group on the interface line and print this line if the lines under the interface does Not have "filter-shared 14".
Example file:
interface 1/1/1/0 move-group
decription one one one zero
no shut
filter-shared 14... (21 Replies)
I am new to grep and Linux and am looking to see if grep can parse out a list of lines that have a difference of more than 10 seconds between the times on each line.
Example
2016-09-17 19:30:57 INFO: id: 4562079216, time: 2016-09-17 19:30:41,
2016-09-17 12:02:26 INFO: id:... (26 Replies)
Hi All,.
need your expertise, is there a way to create a script that will run with specific time without using cron. because i dont have access in cron.
TIA (19 Replies)