Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-16-2012
Registered User
 
Join Date: May 2012
Posts: 16
Thanks: 4
Thanked 0 Times in 0 Posts
Question Regarding context to add in a file

Hi Folks,

I have one query is that I can reach to a location of a file named Integration_Config_3.properties through putty


Code:
cd /usr/local/pos/jlan/config/byStore/il


Code:
ls -ltr

I can open this file in vi editior also

Code:
vi Integration_Config_3.properties

But now my query is I want to add the below context in this properties file
HTML Code:
Socket_PrimaryHost=possrv
UTFSocket_PrimaryPort=22009
UTFSocket_SecondaryHost=loyal
UTFSocket_SecondaryPort=22009
UTFSocket_ReconnectTimer=30000
UTFSocket_FailBackTimer=1000
UTFSocket_FailOverTimer=1000
UTFSocket_ConnectionCheck=60000
UTFSocket_HandshakeInterval=300000

How can I add the following context while the file is being opened in Vi itself, Please advise
Sponsored Links
    #2  
Old 06-16-2012
bartus11's Avatar
Registered User
 
Join Date: Apr 2009
Posts: 3,146
Thanks: 3
Thanked 957 Times in 936 Posts
Is that "context" in some file on that server?
Sponsored Links
    #3  
Old 06-16-2012
Registered User
 
Join Date: May 2012
Posts: 16
Thanks: 4
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by bartus11 View Post
Is that "context" in some file on that server?
Yeah this file is on server and I reach to this location through putty.
    #4  
Old 06-16-2012
bartus11's Avatar
Registered User
 
Join Date: Apr 2009
Posts: 3,146
Thanks: 3
Thanked 957 Times in 936 Posts
You can put contents of "context" file using vi like this:
Code:
:r /path/to/context_file

Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Context Sensitive smallcap => TitleCap conversion in an entire text file monkeyman Shell Programming and Scripting 6 01-17-2011 09:37 AM
Splitting a file based on context. webkid Shell Programming and Scripting 8 12-03-2010 07:23 PM
grep help after context dips_ag Shell Programming and Scripting 6 05-10-2010 06:30 AM
keep context in awk VTAWKVT Shell Programming and Scripting 2 05-23-2008 02:06 PM
Context Switching keelba UNIX for Advanced & Expert Users 2 11-15-2002 10:26 AM



All times are GMT -4. The time now is 12:32 AM.