Regarding context to add in a file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Regarding context to add in a file
# 1  
Old 06-16-2012
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 adviseSmilie
# 2  
Old 06-16-2012
Is that "context" in some file on that server?
# 3  
Old 06-16-2012
Quote:
Originally Posted by bartus11
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
You can put contents of "context" file using vi like this:
Code:
:r /path/to/context_file

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Questions related to if in awk context and if without awk context

I wrote this code, questions follow #! /bin/bash -f # Purpose - to show how if syntax is used within an awk clear; ls -l; echo "This will print out the first two columns of the inputted file in this directory"; echo "Enter filename found in this directory"; read input; ... (11 Replies)
Discussion started by: Seth
11 Replies

2. Shell Programming and Scripting

Context Sensitive smallcap => TitleCap conversion in an entire text file

I desperately need to write a script that go into text documents that list the location of files in small caps and have it convert the directories and subdirectories that lead to the file as Title Caps while leaving the file itself in small caps... to illustrate what I mean: I need to turn txt... (6 Replies)
Discussion started by: monkeyman
6 Replies

3. Web Development

Redirect to add context root

I have an apache site that is connecting to a backend jboss server using the mod_jk plugin. This jboss server has multiple coldfusion applications deploy'd to it, and each of those applications has it's own apache webserver on the frontend. The problem I'm running into is when I use a... (3 Replies)
Discussion started by: cbo0485
3 Replies

4. Shell Programming and Scripting

Splitting a file based on context.

I have file as shown below. Would like to split the file based on the context of data. Like, split the content between "---- XXX Info ----" and " ---- YYY Info ----" to a file. When I try using below command, 2nd file contains all the info starting after first "---- YYYY Info ----" instance.... (8 Replies)
Discussion started by: webkid
8 Replies

5. Homework & Coursework Questions

Context-switching - vmstat

1. The problem statement, all variables and given/known data: Type `vmstat -s; vmstat -n 1 5; vmstat -n 1 5; vmstat -s` to your Ruby interpreter. Then terminate your Ruby session. Run the Unix com- mand vmstat -s; vmstat -n 1 5; vmstat -s in the same terminal window you had been using for... (2 Replies)
Discussion started by: snowboarder
2 Replies

6. Homework & Coursework Questions

context-switching - vmstat

Hi all, I've got this question that i need to solve: "Type `vmstat -s; vmstat -n 1 5; vmstat -n 1 5; vmstat -s` to your Ruby interpreter. Then terminate your Ruby session. Run the Unix com- mand vmstat -s; vmstat -n 1 5; vmstat -s in the same terminal window you had been using for Ruby. Did... (1 Reply)
Discussion started by: snowboarder
1 Replies

7. Shell Programming and Scripting

grep help after context

Hi, There's a file with below contents which I have to read based on the input parameter provided by the user. FILE_ID=1 FILE_FTP_ID=ftp.server1.com FILE_FTP_USER=user1 FILE_FTP_PASS=pass1 FILE_ID=2 FILE_FTP_ID=ftp.server2.com FILE_FTP_USER=user2 FILE_FTP_PASS=pass2 FILE_ID=3... (6 Replies)
Discussion started by: dips_ag
6 Replies

8. UNIX for Advanced & Expert Users

Creating patch for context

Hi friends, I have created a patch which I need to apply to two different files. Here the two files have the same functions implementation but placed at different lines. Just because the line numbers are different I can't use the same patch for both, have to make different ones. Is there some... (0 Replies)
Discussion started by: sreejithc
0 Replies

9. Shell Programming and Scripting

keep context in awk

here is a data file. ------------------------------------- KSH, CSH, BASH, PERL, PHP, SED, AWK KSH, CSH, BASH, PERL, PHP, BASH, PERL, PHP, SED, AWK CSH, BASH, PERL, PHP, SED, KSH, CSH, BASH, PERL, PHP, SED, AWK ------------------------------------- My desired output is... (2 Replies)
Discussion started by: VTAWKVT
2 Replies

10. UNIX for Advanced & Expert Users

Context Switching

I know that this is a relative question but can someone give me an idea of what would be considered a high number of context switches? I am running vmstat and show a cs value of between 5000 and 6000 on a 4 processor system. How can I deduce if this number is high or not? Also, the timeslice... (2 Replies)
Discussion started by: keelba
2 Replies
Login or Register to Ask a Question