VI:
- count total words:
 :%s/\i\+/&/gn    
- count occurrences of particular word:
 :%s/WORD/&/gn    
SED:
- copy all text from marker until end of file:
 sed -n -n '/MARKER/,$p' in >> out  
- replace all occurrences of SOURCE to TARGET with optional characters before SOURCE:
 sed -E 's/(OPTIONAL)?SOURCE/\1TARGET/g' in >> out  
 
 
No comments:
Post a Comment
With great power comes great responsibility