1 2 3 4 5 6 7 8 9 10 11
#!/bin/sh if which upsc > /dev/null 2>&1 ; then echo '<<<nut>>>' for ups in $(upsc -l) do upsc $ups| sed "s,^,$ups ," done fi exit 0