Home » Questions » Computers [ Ask a new question ]

Replace filename with filepath with sed

Replace filename with filepath with sed

I want to replace the string

Asked by: Guest | Views: 207
Total answers/comments: 1
Guest [Entry]

"no need for sed:

dirname /usr/local/bin/program

will return /usr/local/bin"