SUSPEND A VI SESSION FOR SHELL

SUSPEND A VI SESSION FOR SHELL

Ever want to run some shell commands while doing a vi edit
session? Like, “what’s the name of that file” I want to use in
this script I’m making?

Instead of exiting vi; doing the ls filenamepart*, and going
back into vi, you can from  a vi session:

enter “:”, then enter “shell”.

This suspends the vi session and gives you a command prompt
where you can use any shell command. When finished, enter the
“exit” command and you will be returned to the vi session.

– Unix tips at UGU

Advertisements

~ by myfinalheaven on February 27, 2009.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

 
%d bloggers like this: