I get to use the
locate command extremely often.
So if I run the following command.
locate updatedb | head -1
Then it gives me the
I wonder if there is any such command that can let me open that file directly?
I am hoping for something like this.
locate updatedb | head -1 | vim