I'm building a small shell script for finding cat/man pages on a wide range of unix systems... in bash, I could build all possible paths by doing this:
# default search paths
default=$(echo /usr/{share, local, dpkg, XR11}/man/{man, cat}{1..8})
for path in $default
do
...
done
Unfortunately, I'm forced to use sh... I could build the paths with loops, but this would look really ugly... is there a neater/shorter way?