Used in a Sentence

grep

Definitions, parts of speech, synonyms, and sentence examples for grep.

Editorial note

If you actually needs a particular shell's local history, pipe grep through a grep for the PID (I find I almost never need that).

Examples15
Definitions3
Parts of speech2

Quick take

A program which selects lines in a file which match a given pattern.

Meaning at a glance

The clearest senses and uses of grep gathered in one view.

noun

A program which selects lines in a file which match a given pattern.

verb

(by extension) To search anything (perhaps a paper document by eye).

verb

(computing) To use a program such as grep to search in a file.

Definitions

Core meanings and parts of speech for grep.

noun

A program which selects lines in a file which match a given pattern.

verb

(by extension) To search anything (perhaps a paper document by eye).

verb

(computing) To use a program such as grep to search in a file.

Example sentences

1

If you actually needs a particular shell's local history, pipe grep through a grep for the PID (I find I almost never need that).

2

C works way better with established tools like grep and co, as it does not do function overloading.

3

FOO=~/bin/vim export FOO env | grep FOO shows it as expanded.

4

Possibly my grep was also better at checking variant field names?

5

Similarly, I can comfortably switch from Linux to OS X to FreeBSD thanks to bash and the gazillion posix tools (grep, ps, awk...).

6

Sorry, I was just really curious how you grep/awk/sed through some man pages.

7

#!/bin/sh if grep --quiet '<?php' $1; then echo 'run for your lives!' else echo 'phew.

8

(If not, that would explain it) Do you claim the same thing for all the other gnu tools (grep et al)?

9

Armed with the arcane power of ancient spaghetti code shell scripts and logical fallacies, they grep their way through enemy lines to banish the dreaded modernity once and for all.

10

Just set up a PC as Wifi hotspot with the same name as the target network and grep the credentials from the devices that try to automatically connect to your PC.

11

In a lot of cases it's because people prefer to keep things DRY, but it hurts when you're trying to grep through a large codebase to find that one method you need.

12

Same here, I get: oathkeeper:~ user$ security find-generic-password -ga labnol | grep password security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.

Quote examples

1

Use "grep -R" to find every single invocation you ever made to that program.

2

%[sh -c '#{results.join(" | ")}'] ~ I've tried a few things but keep getting this: Running: sh -c 'grep -e hello access.log' This application has requested the Runtime to terminate it in an unusual way.

Proper noun examples

1

Grep for all arithmetic in your choice of program and the vast, vast majority are not deliberately using overflow behavior for some effect.

Frequently asked questions

Short answers drawn from the clearest meanings and examples for this word.

How do you use grep in a sentence?

If you actually needs a particular shell's local history, pipe grep through a grep for the PID (I find I almost never need that).

What does grep mean?

A program which selects lines in a file which match a given pattern.

What part of speech is grep?

grep is commonly used as noun, verb.