- cut off known substring sh
- echo "http://www.myserver.org/very/very/long/path/mystring" | perl -pe 's|^http://www.myserver.org/very/very/long/path/(.*)$|1|'
- echo "http://www.myserver.org/very/very/long/path/mystring" | sed 's|^http://www.myserver.org/very/very/long/path/(.*)$|1|'
- echo "http://www.myserver.org/very/very/long/path/mystring" | sed "s|^${variable}(.*)$|1|"