DECORATE(1)

πŸ“¦
version 1.9 Β· 3 versions
, in alpine 3.24, arch rolling, debian trixie, epel 10, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– DECORATE(1) πŸ’–

ok bestie, welcome to decorate β€” it's a lil helper from the User Commands section of the manual, and it's literally about to make your sorting life so much cuter. πŸŽ€


✨ NAME ✨

decorate β€” convert fields of various formats πŸ¦‹


🌸 SYNOPSIS 🌸

decorate [OPTION]... [INPUT]
decorate --decorate [OPTION]... [INPUT]
decorate --undecorate N [OPTION]... [INPUT]

πŸ‘‘ DESCRIPTION πŸ‘‘

It converts fields of various formats, and if you want, it sorts them too. the range?? immaculate. πŸ’…

ok so here's the tea on how it behaves, depending on which mode you're in:

  • With --decorate β€” it adds the converted fields to the start of each line and prints it to STDOUT. note that it does not sort. no sorting here, bestie, we're just decorating. ✨
  • With --undecorate β€” it removes the first N fields from the input. use this as your post-processing step after sort(1). it's giving cleanup era. 🧹
  • Without --decorate and --undecorate β€” it automatically decorates the input, runs sort(1), and undecorates the result. this is the easiest method to use, fr fr. 🫢

and like, why do you even care? because decorate lets you sort input according to various orderings β€” think IP addresses, roman numerals, etc. it works in tandem with sort(1) to perform the actual sorting. it's a whole collab, and honestly? they ate. πŸ”₯

ngl the decorate + sort(1) combo is the moment. it does the actual sorting, decorate just sets the vibe. 😭

and that's the whole page, babe β€” DECORATE(1), straight out of the User Commands section. no source/version/date info came along with it, so that's all we got, and we slayed with it. mwah. πŸ’–βœ¨πŸŽ€