How do I cut all characters after the last '/'?
This text
xxxx/x/xx/xx/xxxx/x/yyyyy
xxx/xxxx/xxxxx/yyy
should return
xxxx/x/xx/xx/xxxx/x
xxx/xxxx/xxxxx
How do I cut all characters after the last '/'?
This text
xxxx/x/xx/xx/xxxx/x/yyyyy
xxx/xxxx/xxxxx/yyy
should return
xxxx/x/xx/xx/xxxx/x
xxx/xxxx/xxxxx
I've been trying to find a way to filter a line that has the word "lemon" and "rice" in it. I know how to find "lemon" or "rice" but not the two of them. They don't need to be next to the other, just one the same line of text.
I want to find a text file in my hard disk which contains a specific word.
Prior to Ubuntu 12.4 I used to start in the dash an application, I think it was called "Search for file...", whose icon was a magnifying glass.I can't find that simple application any more.
I want to add hashes to all the lines in a regular text file. I'm fine with both the use of terminal and GUI—I just need to get it done.