From b078d8d4bb7a4759ca1296b3f0be0866b7c182f2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 9 May 2022 10:50:02 -0400 Subject: README: Use a table for side-by-side examples --- README.md | 45 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 35 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 4f49dac..bec73c8 100644 --- a/README.md +++ b/README.md @@ -100,16 +100,41 @@ haystack/deep/1/2/3/4 For example, `bfs` is less picky about where you put its arguments: -
-$ bfs -L -name 'needle' haystack    │ $ find -L -name 'needle' haystack
-haystack/needle                     │ find: paths must precede expression: haystack
-                                    │
-$ bfs haystack -L -name 'needle'    │ $ find haystack -L -name 'needle'
-haystack/needle                     │ find: unknown predicate `-L'
-                                    │
-$ bfs -L haystack -name 'needle'    │ $ find -L haystack -name 'needle'
-haystack/needlehaystack/needle
-
+ + + + + + + + +
+ +```console +$ bfs -L -name 'needle' haystack +haystack/needle + +$ bfs haystack -L -name 'needle' +haystack/needle + +$ bfs -L haystack -name 'needle' +haystack/needle +``` + + + +```console +$ find -L -name 'needle' haystack +find: paths must precede expression: haystack + +$ find haystack -L -name 'needle' +find: unknown predicate `-L' + +$ find -L haystack -name 'needle' +haystack/needle +``` + +
-- cgit v1.2.3