---
name: "rt-search-attributes-4"
section: "8"
platform: "linux"
package: "request-tracker4"
version: "4.4.6+dfsg-1.1+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/rt-search-attributes-4"
---

# rt-search-attributes-4(8)

search RT Attribute objects

## NAME

rt-search-attributes - search RT Attribute objects

## SYNOPSIS

rt-search-attributes \[OPTION\] ATTRIBUTE\_NAME QUALIFYING\_CODE

## DESCRIPTION

This script searches all attributes named ATTRIBUTE\_NAME with qualifying code QUALIFYING\_CODE and prints out the details of matching attributes.

QUALIFYING\_CODE can use a number of variables to call on RT::Attribute's properties:\
    `$Id`, `$ObjectType`, `$ObjectId`, `$Name`, `$Description`, `$Content`\
    `$_` is available as shorthand for `$Content`

\-c, --content\
     Print attribute content

\-h, --help\
     Display this help and exit

e.g.

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