User Tools

Site Tools


lx103:notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lx103:notes [2024/04/28 03:05]
114.119.149.71 old revision restored (2023/12/08 03:57)
lx103:notes [2024/05/15 14:34] (current)
114.119.137.174 old revision restored (2024/01/04 13:53)
Line 475: Line 475:
     * ? - search     * ? - search
     * cc = del line + goto insert mode     * cc = del line + goto insert mode
 +    * cw = change word, deletes word and puts you in INSERT mode! Awesome!
     *      * 
     * EX MODE     * EX MODE
Line 483: Line 484:
     * :wq - write quit     * :wq - write quit
     * :w - write     * :w - write
 +    * :r path/to/file - loads contents of that file INTO curr file.
 +    * :!shellCMDhere
 +
 +
 +====== sed Stream Editor ======
 +
 +  *change first occurrence of parttime to promotion.
 +    * sed '0,/parttime/s/parttime/promotion' employees.txt
 +  * change first occur of parttime to fulltime
 +    * sed 's/parttime/fulltime' employees.txt
 +  * change ALL occurrences of parttime to fulltime
 +    * sed 's/parttime/fulltime/g' employees.txt
 +Can move all space to dots, slashes to spaces, etc etc, powerful stuff.
 +RESUME ME, LINUX ACAD VIDEO @4:30m - LEcture, sed Stream Editor!
lx103/notes.1714273514.txt.gz ยท Last modified: 2024/04/28 03:05 by 114.119.149.71