From 5756535272b8516d3394c1671ccf56ec00d5305e Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 11 May 2023 05:27:42 +0200 Subject: [PATCH] tsort: add example with a string (#10157) * tsort: Add an actual example with a string The current example doesn't show what path/to/file should be like (or provide a concrete example) * Apply placeholder Co-authored-by: K.B.Dharun Krishna * Add - e to the echo cmd Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --------- Co-authored-by: K.B.Dharun Krishna Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/common/tsort.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/tsort.md b/pages/common/tsort.md index 6461dc47f..8d7932400 100644 --- a/pages/common/tsort.md +++ b/pages/common/tsort.md @@ -7,3 +7,7 @@ - Perform a topological sort consistent with a partial sort per line of input separated by blanks: `tsort {{path/to/file}}` + +- Perform a topological sort consistent on strings: + +`echo -e "{{UI Backend\nBackend Database\nDocs UI}}" | tsort`