Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-02-2008, 05:45 AM   #1
Registered: Dec 2007
Posts: 73

Rep: Reputation: 15
Cool How to close a opened file using shell scripting

Hi all,
I have written a shell script in which i opened a file using vim editor now i want to save and close this after making some changes to it.
How can i do it.
Old 01-02-2008, 07:51 AM   #2
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,897

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
I'm not sure that is possible. You probably should do the editing with sed or ed in orrder to have better control of the process from a script.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Close opened ports??? ajeetraina Linux - Server 2 12-03-2007 03:25 AM
file formatting via shell scripting athreyavc Programming 2 10-09-2007 04:55 AM
Inserting lines into a file through shell scripting false-hopes Linux - General 1 10-22-2005 12:39 PM
root's home window won't close once opened gregrhl Linux - Software 2 03-24-2004 06:19 PM
Shell scripting from java file karthiknataraj Linux - General 1 02-08-2003 05:47 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration