Files
cheatsheet-tldr/tldr/tsort
2025-01-19 00:18:40 +00:00

21 lines
558 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# tsort
> Perform a topological sort.
> A common use is to show the dependency order of nodes in a directed acyclic graph.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/tsort-invocation.html>.
- 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
Backend Database
Docs UI}}" | tsort`