Consulting Services and Tech-Tips from Ben Patridge
# echo "xxx/xxxx/xxxxx/yyy" | sed 's|\(.*\)/.*|\1|' # echo "xxxx/x/xx/xx/xxxx/x/yyyyy" | sed 's|\(.*\)/.*|\1|'
Output
xxx/xxxx/xxxxx xxxx/x/xx/xx/xxxx/x
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Δ