yezsmq
Last Updated: February 25, 2016
·
446
· sheerun
Photo on 08.01.2013 at 04.15

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.
Say Thanks
Respond
Filed Under