Answers for "get everything before the last / shell"

0

get everything before the last / shell

echo "/home/me/documents/morestuff/before_last/last" | sed s:/[^/]*$::
Posted by: Guest on May-04-2021

Code answers related to "get everything before the last / shell"

Browse Popular Code Answers by Language