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