serhii.net

In the middle of the desert you can say anything you want

30 Sep 2020

Day 639

head / tail starting from an offset

bash - Linux head/tail with offset - Stack Overflow:

 -n, --lines=K
        output the last K lines, instead of the last 10; 
        or use -n +K to output lines starting with the Kth

You can therefore use ... | tail -n +2 | head -n 3 to get 3 lines starting from line 2.

Simple but effective. tail -n +N does tail starting from linenumber N.

Intellij idea search / find

Search is search, but “find in path” (and some other stuff) is find. I wonder if there’s a meaningful semantic difference in there. Semantic difference between Find and Search? - Stack Overflow has the logical ones, but I can’t connect it to how intellij idea uses them.

Nel mezzo del deserto posso dire tutto quello che voglio.