Create segment.sh