mirror of
https://github.com/1f349/lotus.git
synced 2024-11-09 22:52:53 +00:00
6 lines
206 B
Bash
6 lines
206 B
Bash
#!/bin/bash
|
|
virtual_alias_maps=$(postconf -h virtual_alias_maps | tr ',' '\n')
|
|
alias_to_lookup="$1"
|
|
result=$(echo "$virtual_alias_maps" | xargs -I {} postmap -q "$alias_to_lookup" {})
|
|
echo "result=$result"
|