03-06-2010
Quote:
Originally Posted by
EXT3FSCK
That is going to replace all instances, i dont want that. i want it to replace every two instances it finds of PORT . That is my dilema right now.
Thanks
Which 2 instances? The first 2 instances, the second 2...?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All,
I have a string "CP_STATUS OSSRC_R6_0_Shipment_R1H_CU AOM_901046 R1H_LLSV1_2008031", and I just want to extract LLSV1, but I dont get the expected result when using the sed command below.
# echo "CP_STATUS OSSRC_R6_0_Shipment_R1H_CU AOM_901046 R1H_LLSV1_2008031" | awk '{print... (4 Replies)
Discussion started by: racbern
4 Replies
2. Shell Programming and Scripting
Hi,
I have a situation where I want to replace some occurrences of ".jsp" into ".html" inside a text file.
For Example:
If a pattern found like <a href="http://www.mysite.com/mypage.jsp"> it should be retained.
But if a pattern found like <a href="../mypage.jsp"> it should be changed to... (4 Replies)
Discussion started by: meharo
4 Replies
3. Shell Programming and Scripting
myfile:
AAAaaa
BBBbbb
CCCccc
AAAeee
DDDddd
how to replace the last AAA as EEEEE using sed?
like this:
AAAaaa
BBBbbb
CCCccc
EEEEEeee
DDDddd (14 Replies)
Discussion started by: vistastar
14 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I have catenated multiple output files (from a monte carlo run) into one big output file. Each individual file has it's own two line header. So when I catenate, there are multiple two line headers (of the same wording) within the big file. How do I use the sed command to search for the... (1 Reply)
Discussion started by: rebazon
1 Replies
5. Shell Programming and Scripting
my file has thousands of line but let me show what i want to achieve... here is one line from that file
cat fileName.txt
(2,'','user3002,user3003','USER_DATA_SINGLE',1,0,0,'BACKUP',2,NULL,0,450,NULL,NULL,'','2011-05-10... (13 Replies)
Discussion started by: vivek d r
13 Replies
6. Shell Programming and Scripting
I must go through some files to change a certain string within text files to another string. I use openSUSE and folders are mounted by cifs.
Text to be replaced (only in .m extension) is U:\FOLDER and new string is N:
That works fine with spaces in directory names etc., but this process ... (5 Replies)
Discussion started by: Pappa41
5 Replies
7. Shell Programming and Scripting
Not able to paste my content. Please see the attachment :-( (2 Replies)
Discussion started by: vivek d r
2 Replies
8. Shell Programming and Scripting
I have a sample text format as given below
<Text Text_ID="10155645315851111_10155645333076543" From="460350337461111" Created="2011-03-16T17:05:37+0000" use_count="123">This is the first text</Text>
<Text Text_ID="10155645315851111_10155645317023456" From="1626711840902323"... (3 Replies)
Discussion started by: my_Perl
3 Replies
9. UNIX for Beginners Questions & Answers
I have a file with multiple lines, all in the same format. For each line, I need to replace the sequence of digits after the last : with a new value, but keep the single quote at the end of the line.
Example:
Input: ( two lines of file)
Name: 'text1:200/text2:1.2.3.4'
Name2:... (19 Replies)
Discussion started by: Beginner101
19 Replies
10. Shell Programming and Scripting
Hi All,
I need one help to replace particular words in file based on if finds another words in that file .
i.e.
my self is peter@king.
i am staying at north sydney.
we all are peter@king.
How to replace peter to sham if it finds @king in any line of that file.
Please help me... (8 Replies)
Discussion started by: Rajib Podder
8 Replies
LEARN ABOUT DEBIAN
zorpctl
ZORPCTL(8) [FIXME: manual] ZORPCTL(8)
NAME
zorpctl_ - Start and stop zorp instances.
SYNOPSIS
zorpctl command [options [instances/@instance-list-file]]
DESCRIPTION
zorpctl starts and stops zorp(8) instances based on the contents of the instances.conf(5) file. Multiple instance names can be specified in
the command-line or in a file to start or stop several instances. If an error occurs while stopping or starting an instance, an exclamation
mark is appended to the instance name as zorpctl processes the request, and a summary is printed when the program exits. If no instance is
specified, the command is executed on all instances. The instances to be controlled can be specified in a file instead of listing them in
the command line, e.g.: zorpctl command options instances.txt. The instances.txt should contain every instance name in a new line.
COMMANDS
start
Starts the specified Zorp instance(s).
force-start
Starts the specified Zorp instance(s) even if they are disabled.
stop
Stops the specified Zorp instance(s).
force-stop
Forces the specified Zorp instance(s) to stop using the KILL signal.
restart
Restart the specified Zorp instance(s).
force-restart
Forces the specified Zorp instance(s) to restart by stopping them using the KILL signal.
reload
Reload the specified Zorp instance(s).
status
Display the status of the specified Zorp instance(s).
--verbose or -v
Display detailed status information.
gui-status
Display the status of the specified Zorp instance(s) in an internal format easily parsable by ZMC. NOTE: This command is mainly used
internally within Zorp, and the structure of its output may change.
version
Display version information on Zorp.
inclog
Raise the verbosity (log) level of the specified Zorp instance(s) by one.
declog
Decrease the verbosity (log) level of the specified Zorp instance(s) by one.
log
Change various log related settings in the specified Zorp instance(s) using the following options:
--vinc or -i
Increase verbosity level by one.
--vdec or -d
Decrease verbosity level by one.
--vset <verbosity> or -s <verbosity>
Set verbosity level to <verbosity>.
--log-spec <spec> or -S <spec>
Set verbosity mask on a per category basis. The format of this value is described in zorp(8).
--help or -h
Display this help screen on the options of the log command.
szig
Display internal information from the specified Zorp instance(s). The information to be disblayed can be specified with the following
options:
--walk or -w
Walk the specified tree.
--root [node] or -r [node]
Set the root node of the walk operation to [node].
--help or -h
Display a brief help on the options of the szig command.
help
Display a brief help message.
EXAMPLES
zorpctl start zorp_ftp
The command above starts the zorp instance named zorp-ftp with parameters described in the instances.conf file.
FILES
The default location for instances.conf is /etc/zorp/instances.conf.
AUTHOR
This manual page was written by the BalaBit Documentation Team <documentation@balabit.com>.
COPYRIGHT
Copyright (C) 2006 BalaBit IT Security Ltd. All rights reserved. For more information about the legal status of this document please read:
http://www.balabit.com/products/zorp/docs/legal_notice.bbq
[FIXME: source] 03/06/2012 ZORPCTL(8)