cmd

Opening a file with vi at a specified string (regexp)

$ vi +/id /etc/inittab

Opens the file and places the cursor at the first ocurrence of the ‘id’ string. Works with regexps.

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*Required Fields