Skip to content

Add fgrep to user space #54

@rnayakusf

Description

@rnayakusf

fgrep matches a fixed string against a stream and prints the lines that match. If only given one argument (the fixed string), it matches against standard input. Else, the other arguments are treated as files to match against, and fgrep will prepend the file path (relative to the current directory) and line number.

Alternatively, if the -R flag is passed, the additional arguments are treated as directories and will be recursively searched through for files to match against. Symlinks should be followed.

The -v flag inverts the selection, printing lines that don't match the string.

Libc changes:

  • Add strstr

Future Development:

  • Deal with symlink loops causing infinite recursion.
  • Match against regex (grep).
  • Color

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions