> For the complete documentation index, see [llms.txt](https://iptracej.gitbook.io/windows-linux-and-active-directory-ctf-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://iptracej.gitbook.io/windows-linux-and-active-directory-ctf-notes/unix-commands/grep-cut-list-size-and-sort.md).

# grep, cut, list size, and sort

Grep a keyword in a directory, cut some output, and list file size and then sort unique

> grep a keyword directory | cut -d ":" -f 1 | xargs ls -l | sort -u
