plan9port/bin/membername

8 lines
130 B
Text
Raw Normal View History

#!/bin/sh
for i
do
# This works whether sed uses \(\) or () for grouping.
echo $i | sed 's/.*\((.*)\).*/\1/' | tr -d '()'
done