![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
[vi]:%s / P/P/ ?
Could anyone tell me what the second line in this block of code in this here-document does.
vi /tmp/irfelogls2.txt <<! :%s / P/P/ :wq! ! 1. Opens file. 2. Performs command ":%s / P/P/" 3. Write, and force-quit the editor. Hm.. I think what it's doing is, searching for a regex of " P" and then replacing it with just a "P".. correct? Edit: Ehh.. sorry... what a waste of a post, I think I answered my own question. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|