Forrest logo
tool overview
On this page you find all important commands for the CLI tool look. If the command you are looking for is missing please ask our AI.

look

The "look" command line tool is used to search for lines that begin with a specific string. It is primarily used to find words or strings in sorted files more efficiently. When executing the "look" command, you need to provide a string or word as an argument, and it will look for lines that start with that specific string. It can only search for single words and does not support regular expressions. The "look" command requires the input file to be sorted in ascending order, as it uses a binary search algorithm to locate the lines. It returns all the matching lines found in the file, ignoring case sensitivity. This command can be handy when searching for specific entries or information in large sorted files more quickly and efficiently.

List of commands for look:

  • look:tldr:e499d look: Look for lines ignoring case.
    $ look --ignore-case ${prefix} ${filename}
    try on your machine
    explain this command
  • look:tldr:ffe87 look: Look for lines which begins with the given prefix.
    $ look ${prefix} ${filename}
    try on your machine
    explain this command
tool overview