ได้จริงๆด้วยครับ ;-)

แต่ใน Shell Script ต้องบัง Escape Charector ไว้ พวก / น่ะครับ ผมทำอย่างนี้ครับ

echo "http://www.somesite.org/some/path/here/and/the/filename.txt" | sed -e 's//.*// /' | cut -d' ' -f 2

ขอบคุณครับ