Search through file with less
For example to search for some_method
in model.rb
:
less -p some_method model.rb
- Use
n
key to search for next match - Use
v
key to edit file on selected line.
Written by Adam Stankiewicz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#