Hi,

On 11/12/2011 08:05 PM, Thomas Dignan wrote:
echo "/lib64/ld-linux-x86-64.so.2" | grep -o '[a-zA-Z\/0-9\-\.]*'

You probably want to use something like

 echo "/lib64/ld-linux-x86-64.so.2" | grep -o '[-a-zA-Z/0-9.]*'

Note: The '-' should be the first character inside a character class if it is not used to describe a range.

Erik



Reply via email to