DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+5 =
Submit