Could anybody help me.
I need to create a script that reads a text file from STDIN and prints out the file to STDOUT with line numbers at the beginning of each line.
Thanks. (5 Replies)
Hello -
I am running Linux. I want to place a comment char at the beginning of a line in a file. For example:
testvar=`grep username /etc/people
sed -e 's/$testvar/#$testvar/g' /etc/people
I cannot get the above commands to put a comment at the beginning of the line.
Any... (3 Replies)
I want to replace this line : "test compare visible] true" and make it "#test compare visible] true".
How can I do it ? And it should be checked in many sub folder files also. (6 Replies)
Hi All
Can u help me..
My problem is comment (#) a line where a word exists in that line
sample:
cat /tmp/file.txt
monitor 192.168.1.11 Copying files in current directory 1
monitor 192.168.1.1 Copying files in current directory 2
monitor 192.168.1.12 Copying files in current... (2 Replies)
I have around 25 hosts and each hosts has 4 instance of jboss and 4 different ip attached to it . I need to make some changes to the startup scripts. Any tips appreciated. I have total of 100 instances which bind to 100 different ip address based on instance name.
For example
File1
... (1 Reply)
How can I specify special meaning characters like ^ or $ inside a regex range. e.g
Suppose I want to search for a string that either starts with '|' character or begins with start-of-line character.
I tried the following but it does not work:
sed 's/\(\)/<do something here>/g' file1
... (3 Replies)
How would you do vim copy line and paste at the beginning, middle, and end of another line. I know yy copies the whole line and p pastes the whole line, but on its own separate line. Sometimes I would like to copy a line to the beginning, middle, or end of another line. I would think this would be... (3 Replies)
Hi
from a script i want to to read a file beginning at line e.g. number 21 to the EOF.
less +n21 temp.txt
Bevor the result, it brings an empty page, so that i cant use for scripting.
Any idea how the problem can be solved?
Thanks in advance!
IMPe (2 Replies)
Hi,
I need to comment out (insert # in the front of a line) a line that has entry Defaults requiretty using command-line as I need to do this on hundreds of servers.
From
Defaults requiretty
To
#Defaults requiretty
I tried something like below but no luck: Please advise,... (3 Replies)
Hi,
I am trying to extract some patterns from a line. The input file is space delimited and i could not use column to get value after "IN" or "OUT" patterns as there could be multiple white spaces before the next digits that i need to print in the output file . I need to print 3 patterns in a... (3 Replies)
Discussion started by: redse171
3 Replies
LEARN ABOUT DEBIAN
kanif.conf
KANIF.CONF(5) kanif.conf configuration file for kanif KANIF.CONF(5)NAME
kanif.conf - configuration file for kanif
SYNOPSIS
$HOME/.kanif.conf, /etc/kanif.conf or /etc/c3.conf
DESCRIPTION
kanif.conf is the configuration file for kanif. It is optional and only helps the management of static clusters (configurations that do not
change much over time). It mimics the syntax of C3 configuration file.
It is composed of a sequence of one or more cluster definitions. Each cluster definition is made of the word "cluster" followed by the
cluster name and, enclosed in a pair of curly braces :
o the front node specification. This is either:
o a simple hostname which can be reached from the inside of the cluster (compute nodes).
o two names separated by a colon. The first name is the name used from the outside to log on the front node (not used by kanif). The
second is the name used from the cluster compute nodes to reach the front node.
o an hostname with a colon prepended. This is used for indirect clusters. These are not supported by kanif at this time.
o zero or more compute nodes specifications:
o a simple hostname (anything that is not of the following form)
o an host set made of a prefix, a range and a suffix.
o an exclude directive that must follow an host set or another exclude directive. This is made of the word "exclude" followed on the
same line by either a single number or an interval between brackets. This applies to the range of the preceding host set. If the
exclusion is an interval, the separator between the word "exclude" and this exclusion is optional.
o a dead node. The word "dead" followed by the name of the dead node on the same line.
Notice that all nodes excluded (using exclude directives or dead nodes) will not take part of the deployment, but are still taken into
account in cluster ranges when giving machines specifications to kanif (they are kind of placeholders). This is the interest of specifying
nodes as dead or excluded rather than dropping them from the definitions.
EXAMPLE
cluster megacluster { # The # character introduce comments
megacluster-dev
megacluster0[1-9]
megacluster[10-64]
}
cluster supercluster {
super-ext:super-int
exclude # The host "exclude"
super[01-99]
exclude 02 # "super02" is excluded
exclude[90-95] # "super90" to "super95" are excluded
dead # The host "dead"
dead othernode # "othernode" is dead
}
SEE ALSO kanif(1), taktuk(1)AUTHOR
The author of kanif and current maintainer of the package is Guillaume Huard. Acknowledgements to Lucas Nussbaum for the idea of the name
"kanif".
COPYRIGHT
kanif is provided under the terms of the GNU General Public License version 2 or later.
perl v5.14.2 2012-06-22 KANIF.CONF(5)