[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Looking for a one line script



I need to get the base path of a filename. For example, if I have
"/path/to/some/random/file.ext" I need to trim off "file.ext" so that
I am left with "/path/to/some/random/". However, the filename could
contain spaces and other odd characters. Any suggestions?

-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59