I can use below command to find specific text in a file
grep -w text-to-find filename
can anyone help me with a command wherein I can move my cursor to a specific position using cat filename
.
Like I have opened a file using cat
command and I want to move my cursor to some text which can be placed anywhere in the file.
I like to move my cursor to that position and scroll upwards from that position in the file.
cat
will dump the content, and after that, moving just the cursor of the terminal will not be very useful, and you will have maybe unwanted behaviour after typing any more characters into that terminal. So I think it is helpful to add what do you want to do by this, what is the next move. – thanasisp Dec 23 '20 at 16:51less -p text-to-find filename
– jesse_b Dec 23 '20 at 16:56