Limit output of `adb shell dumpsys alarm`

I want to use the adb shell dumpsys alarm to debug some alarms I'm setting but it is producing a huge amount of data is there any way to limit the output to just a certain app?

No, but command line utilities like grep and fgrep can show you snippets of the output that refer to some string, such as your package name.


For me putting the whole shell command in quotes worked something like this :

adb shell "dumpsys alarm | grep my.packagename"

or

adb shell "dumpsys alarm | fgrep my.packagename"