Score:0

Navigate from error to error in laravel.log file using linux less command?

hk flag

Looking at log errors in my laravel.log is tedious, I use less command to check when somethings goes wrong, I was wondering, is there a way to jump from error to error using keys or shortcut less commands?

Each laravel log error entry starts with a datelike:

[2018-01-30 10:51:10] testing.ERROR: Method [middleware] does not exist on 

So maybe I can use a regex? does less support regex? is this even possible to achieve?

Score:1
pk flag

In less, press /; the : in the bottom line of the window will turn to / . Type ERROR, and less will highlight all matches. Type n to jump to the next match, N to jump to previous match.

Thegeekstuff has a nifty article on the less navigation shortcuts.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.