Friday, April 29, 2011

remove matching end or beginning of value in bash

Thanks again to Matt Woodson:

cd /root; echo ${PWD%oot}; echo ${PWD#/roo}

0 comments: