RT-SEAR...RIBUTES(1)

πŸ“¦
version 5.0.10 Β· 4 versions
, in fedora 43

πŸ’… RT-SEAR...RIBUTES(1) β€” the RT::Attribute treasure hunt πŸ’…

okay bestie, gather round, this is a User Contributed Perl Documentation page and it's lowkey iconic. come find your attributes with me 🫢


✨ NAME ✨

rt-search-attributes β€” search RT::Attribute objects. that's it, that's the whole vibe. πŸŽ€


🌈 SYNOPSIS 🌈

rt-search-attributes [OPTION] ATTRIBUTE_NAME QUALIFYING_CODE

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: this script goes through all the attributes named ATTRIBUTE_NAME, runs your QUALIFYING_CODE against them, and then prints out the deets of every matching attribute. it's giving detective energy πŸ”βœ¨

and the way that QUALIFYING_CODE gets to use a whole squad of variables to peek at RT::Attribute's properties?? obsessed:

  • $Id
  • $ObjectType
  • $ObjectId
  • $Name
  • $Description
  • $Content

also $_ is available as the shorthand for $Content, because typing the whole thing every time is so much, and she gets it πŸ’…

  • -c, --content β€” print the attribute content. show me the goods bestie πŸ’–
  • -h, --help β€” display this help and exit. everybody's favorite flag tbh 🌸

πŸ¦‹ e.g. πŸ¦‹

literally just look at these, no cap:

rt-search-attributes SavedSearch '$id > 10'
rt-search-attributes Search '$_->{Query} =~ /Status/'

see how easy?? go off πŸ‘‘


⭐ friendly reminder from your girl: QUALIFYING_CODE is real code and it really runs, so write it like you mean it, okay? 😭

and that's the whole page, babe β€” slay. this one's served up by perl v5.42.3, dated 2026-07-20, and it's still RT-SEAR...RIBUTES(1) because some names are just too long to be contained πŸ’€πŸ§š β„˜

πŸ“¦ where this page comes from