09-20-2012
Remove the 4 and check for yourself.
This User Gave Thanks to elixir_sinari For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to add a line of text just before the last line in a file.
For example, if the last line of a file is "exit 0", I need to add a line of text just before that.
Any ideas how I might do that?
Thanks (5 Replies)
Discussion started by: TheCrunge
5 Replies
2. Shell Programming and Scripting
Hi I need to add a comment line at the begining of a text file. The scenario is given below.
1. The number of servers that needs to be updated is around 80
2. The location of the text file in all the servers are the same including the file name.
3. The comment has to be added at the very... (2 Replies)
Discussion started by: orakhan
2 Replies
3. Shell Programming and Scripting
Hi,
I wanted to add specific text to each row in a text file containing three rows. Example:
0 8 7 6 5 5
7 8 9 0 7 9
7 8 9 0 1 2
And I want to add a 21 at the beginning of the first row, and blank spaces at the beginning of the second two rows. To get this:
21 0 8 7 6 5 5
7 8... (4 Replies)
Discussion started by: hertingm
4 Replies
4. Shell Programming and Scripting
Dear Folks :),
I am new to UNIX scripting and I do not know how can I insert some text in the first column of a UNIX text file at command promtp.
I can do this in vi editor by using this command :g/^/s//BBB_
e,g I have a file named as Test.dat and it containins below text:
michal... (4 Replies)
Discussion started by: Muhammad Afzal
4 Replies
5. Shell Programming and Scripting
Hi,
Please let me know how to find text and print text and its previous line. Please don't get irritated few days back I asked text and next line. I am using HP-UX 11.11
Thanks for your help. (6 Replies)
Discussion started by: kamranjalal
6 Replies
6. Shell Programming and Scripting
Hi all
How to add line numbers in text file..
ex
abcd
cdef
result
1. abcd
2. cdef
thx in advance (4 Replies)
Discussion started by: suryanarayana
4 Replies
7. Shell Programming and Scripting
hello,
how can I add one text line string at the line number one of a file.
thankx, (5 Replies)
Discussion started by: Ahmed waheed
5 Replies
8. Shell Programming and Scripting
Please help to add ; to every line in a text file
i Have tired sed 's/$/ ; /g' > /tmp/drop_tables.sql but not working :(
Thanks (2 Replies)
Discussion started by: bluebird5m
2 Replies
9. Shell Programming and Scripting
I've been playing with sed, trying to get it to insert the contents of somefile.txt after line 13 on anotherfile.txt. I tried searching for a line with regex and attempting to insert something on the next line with:
find ./anotherfile.txt -type f -exec sed -i -e '/^dog/cat/' {} \;
but it... (2 Replies)
Discussion started by: unclecameron
2 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I am trying to extract lines from a text file given a text file containing line numbers to be extracted from the first file. How do I go about doing this? Thanks! (1 Reply)
Discussion started by: evelibertine
1 Replies
LEARN ABOUT CENTOS
pmdakvm
PMDAKVM(1) Performance Co-Pilot PMDAKVM(1)
NAME
pmdakvm - Linux virtualisation performance metrics domain agent (PMDA)
DESCRIPTION
pmdakvm is a Performance Metrics Domain Agent (PMDA) which exports metric values from the Linux KVM virtualisation subsystem.
Unlike many PMDAs it dynamically enumerates its metric hierarchy, based entirely on the contents of /sys/kernel/debug/kvm.
INSTALLATION
If you want access to the names and values for the kvm performance metrics, do the following as root:
# cd $PCP_PMDAS_DIR/kvm
# ./Install
If you want to undo the installation, do the following as root:
# cd $PCP_PMDAS_DIR/kvm
# ./Remove
pmdakvm is launched by pmcd(1) and should never be executed directly. The Install and Remove scripts notify pmcd(1) when the agent is
installed or removed.
FILES
$PCP_PMDAS_DIR/kvm/Install
installation script for the pmdakvm agent
$PCP_PMDAS_DIR/kvm/Remove
undo installation script for the pmdakvm agent
$PCP_LOG_DIR/pmcd/kvm.log
default log file for error messages from pmdakvm
SEE ALSO
pmcd(1) and kvm(1).
3.8.10 Performance Co-Pilot PMDAKVM(1)