Hey I have a question,
I have the following command:
locate -br '^test.sh$'
The output is:
/home/cas/scripts/test.sh
I want to have the path without the name of the file. So I did the following to remove test.sh from the output:
locate -br '^test.sh$' | grep -v test.sh
I expected the output to...