Explain grep code
Paste grep commands and Vibe explains what each one finds: what the flags change, what the pattern matches and what the command prints back.
Up to 1,500 characters (about 60 lines). Your code is sent to Unvibe and Anthropic to write the explanation. Don't paste keys or passwords. Common key formats are refused.
Vibe20 lines selected
Press Explain it for the sample, or paste your own code first.
What this grep sample shows
- -i and -n
- grep prints every line that contains the pattern.
-iignores case and-nadds line numbers: on a test log it printed2:09:00:05 ERROR could not reach databaseand5:09:02:30 Error: disk almost full. - -c and -w
-cprints how many lines matched instead of the lines:2for timeout.-wonly matches the whole word, so-w "fail"printed onlyWARN fail count 3and skipped the lines withfailedandfailure.- -v, -r and -l
-vturns the search around and prints the lines that don't match: the access log came back without its two health checks.-rsearches every file in a folder and its subfolders, and-lprints only the names of files with a match:src/cart.jsandsrc/lib/retry.py, but notsrc/price.js.- -o and -E
-Eallows extended patterns such as{2}for exactly two, and-oprints only the matched part.[45][0-9]{2}is a 4 or 5 followed by two digits, so the command printed500and404and left out the 200s.
Good to know
- Run with GNU grep 3.12 on a test log, access log and source folder.
- grep's exit code says what happened: 0 when something matched, 1 when nothing did, and 2 for an error such as
nope.log: No such file or directory. - In a script with
set -e, a search that finds nothing ends the script.grep -c "panic"printed0, exited with 1, and the next line never ran.
Watch out: A . in the pattern matches any character, not just a dot. grep "10.0.0.5" also matched a line with 10a0b0c5. Use grep -F to search for the text exactly as written, or write \. for a dot.
Explain grep code beside your editor
Unvibe is a free app for Mac and Windows. In the app there is no pasting: select code in any app and press Control+U (Ctrl+Alt+U on Windows).
Install on Mac
curl -fsSL https://unvibe.site/install.sh | bashPaste into Terminal. Unvibe isn't notarized by Apple yet, so this is the smooth path.
Or download the .dmg · Intel Mac build · SHA-256 checksums
Opening the .dmg the first time
- Open the .dmg and drag Unvibe to Applications.
- Open it once; macOS says it can't verify it. Click Done.

Real screen, macOS 15 - System Settings › Privacy & Security › Open Anyway. Confirm, then enter your Mac password. The button shows for about an hour after you try to open Unvibe.

Real screen, macOS 15
The Terminal line checks the download against the published SHA-256 and Unvibe's self-signed signature before it installs anything. More help with the first open