SFEED_PLAIN(1)

πŸ“¦
version 2.4 Β· 2 versions
  • 2.4 Β· alpine 3.24, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.7 Β· debian bookworm
, in alpine 3.24, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– SFEED_PLAIN(1) πŸ’–

okay bestie, welcome to sfeed_plain from the General Commands Manual section 1 β€” she's a little formatting gremlin and she's about to make your feed data look adorable ✨


🌸 NAME 🌸

sfeed_plain β€” format feed data to a plain-text list

πŸŽ€ SYNOPSIS πŸŽ€

sfeed_plain [file ...]

✨ DESCRIPTION ✨

so basically, sfeed_plain takes feed data (that's TSV, tab-separated values, the whole vibe) coming from sfeed(1) β€” either from stdin or from each file you hand her β€” and formats it to stdout as a plain-text list. πŸ’…

If you pass one or more file arguments, then the basename of the file gets used as the feed name in the output. And if you pass no file arguments at all, so she's reading from stdin, then the feed name is just… empty. nothing. a void. πŸ«₯

Items whose timestamp is from the last day compared to the system time at the time of formatting get marked as new. That value can be overridden through environment variables, iykyk. New items get the prefix "N" slapped at the start of the line. πŸ‘‘

sfeed_plain aligns the output, because she's ✨aesthetic✨. She shows a maximum of 70 column-wide characters for the title, and if the title is longer and gets truncated she outputs an ellipsis symbol. so dramatic, we love her. 😭

bestie pls make sure the environment variable LC_CTYPE is set to a UTF-8 locale, so she can determine the proper column-width per rune, using mbtowc(3) and wcwidth(3). otherwise it's giving chaos. πŸ’€

πŸ¦‹ ENVIRONMENT VARIABLES πŸ¦‹

  • SFEED_NEW_AGE β€” overwrite the maximum age in seconds to mark feeds as new. by default this is 86400, which equals exactly one day. ⏰

πŸ”₯ EXIT STATUS πŸ”₯

The sfeed_plain utility exits 0 on success, and >0 if an error occurs. no in-between, she's not ambiguous. πŸ’


🌈 EXAMPLES 🌈

curl -s 'https://codemadness.org/atom.xml' | sfeed | sfeed_plain

look at her go. pipeline queen. πŸ‘‘


πŸ“ SEE ALSO πŸ“


πŸ’œ AUTHORS πŸ’œ

Hiltjo Posthuma <hiltjo@codemadness.org>


and that's the whole page bestie!! this lil cutie is from the Debian build of the manual, dated May 14, 2022, and honestly? iconic behavior. go format some feeds. πŸ§šβœ¨πŸ’–

πŸ“¦ where this page comes from