2

I'm learning the look utility and I don't understand the meaning of the -t option.

Can someone show me some examples of it?

I read the man page, but still don't know what it exactly means.

mitnk
  • 551
  • If you'd actually look at the man page, you'd see that the option -t is to ignore the case when matching. –  Oct 07 '11 at 13:39
  • 4
    Actually -f is ignore case; -t specifies a termination character –  Oct 07 '11 at 13:56
  • @Paul I did read the man page. But still didn't get what it actually means. That's why I ask for examples. –  Oct 07 '11 at 14:04
  • @mitnk: not really a programming question - it will probably be moved to http://superuser.com shortly - but the man page is pretty clear - what part don't you understand ? –  Oct 07 '11 at 14:33
  • @Paul Thank you for your comments. I just found what it means. The part I don't understand is English sentence I guess ;) Sorry for my bad English. –  Oct 07 '11 at 14:44
  • The examples I wanted is like "look -t i iz" VS "look iz". Thx all. –  Oct 07 '11 at 14:50
  • @Paul: it seems I should put on more glasses when responding to questions. –  Oct 07 '11 at 17:02

1 Answers1

1

I don't know why that option would be useful. However here's an example:

$ look -df uncle /usr/share/lib/dict/words
uncle
$ look -df -tc uncle /usr/share/lib/dict/words
unchristian
uncle
uncouth
unction

I suppose it's to give you a mechanism to look up "similar" words if you don't have complete control over the lookup-string.

glenn jackman
  • 85,964