Use cut with a specified delimiter, eg: echo "http://server.com/path/to/sourcefile-2.3.4.tar.bz" | cut -d / -f 6
- Dave On Dec 14, 2005, at 4:49 PM, Nick Rout wrote:
Excellent, thanks Now, how do i turn a url like: http://server.com/path/to/sourcefile-2.3.4.tar.bz into just the filename like this: sourcefile-2.3.4.tar.bz
