I want to get all service names which match a pattern.
This does not work:
systemctl list-units -t service --no-pager --no-legend| cut -d' ' -f1| grep mypattern
Long service names get cut.
Example:
fooo123@...abc-new.service
How can I list the whole unit name?