Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

get everything before the last / shell

echo "/home/me/documents/morestuff/before_last/last" | sed s:/[^/]*$::
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #shell
ADD COMMENT
Topic
Name
8+5 =