Every time I need to find a file and then open it, I have to use : find ./ -name **.properties. , then copy the result, and then vi "paste the result here" . If I need to use a mouse, it can be a little trouble. So is there any better way to do this?
feedback
|
|
You can open an arbitrary file by using AWK or sed to print a particular line number.
or
or
or
The versions with | |||
|
feedback
|
will open all files in a single
| |||||||||||
feedback
|
|
If you change your shell to zsh, you'll need
Since bash 4.0, if you put In zsh, you have a lot more possibilities thanks to glob qualifiers (described very tersely near the end of the
If you'd rather edit the most recently modified matching file, you can use the
| |||
|
feedback
|
|
You may want to look at the
I should point out that, as I discovered not long after I posted this answer, the | ||||
|
feedback
|
|
Then use the interrupt key (e.g. ^C) after editing the first file. | |||||
|
feedback
|
|
You can put the results of the
or like this:
since
| |||||
feedback
|