@WronglyCommute@programming.dev
Post #567485
2026-03-07 08:44 UTC
You could always run whereis playerctl and parse the output with awk or sed
Replies (1)
-
@floquant@lemmy.dbzer0.com 2026-03-07 11:32
whereis is not a Bash built-in so it may itself not be installed, plus it exits 0 and returns output even on no match requiring additional logic/processing. which or command are more robust choices for this usecase