From 2d3be200464d40e91d8b2b7596775a925929c9c0 Mon Sep 17 00:00:00 2001 From: AnimiVulpis Date: Mon, 30 Oct 2017 23:48:56 +0100 Subject: [PATCH] ag: tokenize values --- pages/common/ag.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/common/ag.md b/pages/common/ag.md index 820d8e564..5095ffbfc 100644 --- a/pages/common/ag.md +++ b/pages/common/ag.md @@ -4,24 +4,24 @@ - Find files containing "foo", and print the line matches in context: -`ag foo` +`ag {{foo}}` - Find files containing "foo", but only list the filenames: -`ag -l foo` +`ag -l {{foo}}` - Find files containing "FOO" case-insensitively, and print only the match, rather than the whole line: -`ag -i -o FOO` +`ag -i -o {{FOO}}` - Find "foo" in files with a name matching "bar": -`ag foo -G bar` +`ag {{foo}} -G {{bar}}` - Find files whose contents match a regular expression: -`ag '^ba(r|z)$'` +`ag '^{{ba}}({{r}}|{{z}})$'` - Find files with a name matching "foo": -`ag -g foo` +`ag -g {{foo}}`