Search Results

Search: Posts Made By: Newman
13,806
Posted By bakunin
Spot on! The "o" ("open") inserts a blank line...
Spot on! The "o" ("open") inserts a blank line AND switches the editor session to input mode, placing you on that line! Therefore "p" is not a command any more but a mere character (which is duly...
13,806
Posted By Aia
Just eliminate step 4. In this case p will paste...
Just eliminate step 4. In this case p will paste that yanked line below where the cursor is. P will insert it above.
13,806
Posted By gandolf989
I use Y to copy a line and P to paste the line....
I use Y to copy a line and P to paste the line. Make sure that you are not in insert mode first. You can hit ESC to toggle back to command mode.

Have you looked at this?

My vi/vim cheatsheet...
3,312
Posted By mjf
A quick search of this forum should help you...
A quick search of this forum should help you solve your requirement. See this one example using awk:

https://www.unix.com/shell-programming-and-scripting/218015-avg-using-awk.html
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy