vi: insert shell output

by prettyscripts on 2009-08-10 11:41:23 • Leave a comment »

unix

to run shell command while in vi: :!command to insert output from shell command after the cursor: :r!command more »

Tags: insert, shell, unix, vi

grep special characters

by prettyscripts on 2008-03-10 11:03:18 • Leave a comment »

unix

to type special characters, such as tab key, on command line, use <ctrl>+V to escape the special character. $ grep "<ctrl>+V+<key>" more »

Tags: grep, shell, special char, unix