08-07-2013
what have you tried so far?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
I have a 20 line file.
I need a command which will brinf back a specific line based upon the line number I enter.
e.g. the file looks like this and is called file1
jim is a man
john is a woman
james is a man
wendy is a woman
lesley is a woman
i want a command that will... (4 Replies)
Discussion started by: sureshy
4 Replies
2. Shell Programming and Scripting
I'm having problems since few days ago, and i'm not able to make it works with a simple awk+grep script (or other way to do this).
For example, i have a input file1.txt:
cat inputfile1.txt
218299910417
1172051195
1172070231
1172073514
1183135117
1183135118
1183135119
1281440202
... (3 Replies)
Discussion started by: poliver
3 Replies
3. Shell Programming and Scripting
I have a list of Servers in no particular order as follows:
virtualMachines="IIBSBS IIBVICDMS01 IIBVICMA01"And I am generating some output from a pre-existing script that gives me the following (this is a sample output selection).
9/17/2010 8:00:05 PM: Normal backup using VDRBACKUPS... (2 Replies)
Discussion started by: jelloir
2 Replies
4. Shell Programming and Scripting
I have searched in a variety of ways in a variety of places but have come up empty.
I would like to prepend a portion of a section header to each following line until the next section header. I have been using sed for most things up until now but I'd go for a solution in just about anything--... (7 Replies)
Discussion started by: pagrus
7 Replies
5. Shell Programming and Scripting
Hi,
i have a file like this:
...
11111111
22222222
33333333
#
4444444
5555555
6666666
7777777
#
...
i want just print the 2 first line between each section (each section is separated with "#"). so desired output would be like this:
...
11111111
22222222 (3 Replies)
Discussion started by: saeed.soltani
3 Replies
6. Shell Programming and Scripting
hi
# cat test.txt
Test
Date: 20131008 1515
--------------------------------------------------------------------------------------------------------------
Saxx = Proc_m0_s13 : 1640
Saxx = Proc_m0_s15 : 1791
Saxx = Proc_m0_s17 ... (2 Replies)
Discussion started by: justbow
2 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I have some large files which I would like to obtain some data from, I want to grep (or alturnative method) out certain values hut only if the folowing line doesnt contain a certain value. I will explain better below showing an example print of the data.
NE : V0001
NE : V0002... (6 Replies)
Discussion started by: mutley2202
6 Replies
8. Shell Programming and Scripting
Hi Guys,
I have the file
---
HOST_NAME,data_coleta,data_carga,CPU_util,CPU_idle,run_queue,memory,MEMORY_SYSTEM,MEMORY_TOTAL,MEMORY_SWAPIN,MEMORY_SWAPOUT,DISK_READ,DISK_WRITE,DISK_IO,NET_IN_PACKET,
NET_OUT_PACKET... (4 Replies)
Discussion started by: antoniorajr
4 Replies
9. UNIX for Beginners Questions & Answers
Hello,
I have a log file that has several sections "BEGIN JOB, End of job" like in the following example:
19/06/12 - 16:00:57 (27787398-449294): BEGIN JOB j1(27787398-449294) JOB1
19/06/12 - 16:00:57 (27787398-449294): DIGIT: 0
number of present logs : 1
19/06/12 - 16:00:57... (4 Replies)
Discussion started by: mvalonso
4 Replies
10. Shell Programming and Scripting
Hi Gurus,
I have below file which has different sections, need to move the sections to beginning of the each record.
original file
aaa
bbb
ccc
ddd
eee
fff
output file.
aaa
bbb
ccc
ddd
eee
fff (6 Replies)
Discussion started by: green_k
6 Replies
LEARN ABOUT DEBIAN
ocsinventory::agent::common
Ocsinventory::Agent::Common(3pm) User Contributed Perl Documentation Ocsinventory::Agent::Common(3pm)
addController()
Add a controller in the inventory.
addModem()
Add a modem in the inventory.
addDrive()
Add a partition in the inventory.
addStorages()
Add a storage system (hard drive, USB key, SAN volume, etc) in the inventory.
addMemory()
Add a memory module in the inventory.
addPort()
Add a port module in the inventory.
addSlot()
Add a slot in the inventory.
addSoftware()
Register a software in the inventory.
addMonitor()
Add a monitor (screen) in the inventory.
addVideo()
Add a video card in the inventory.
addSound()
Add a sound card in the inventory.
addNetwork()
Register a network in the inventory.
setHardware()
Save global information regarding the machine.
The use of setHardware() to update USERID and PROCESSOR* informations is deprecated, please, use addUser() and addCPU() instead.
setBios()
Set BIOS informations.
addCPU()
Add a CPU in the inventory.
addUser()
Add an user in the list of logged user.
addPrinter()
Add a printer in the inventory.
addVirtualMachine()
Add a Virtual Machine in the inventory.
addProcess()
Record a running process in the inventory.
addIpDiscoverEntry()
IpDiscover is used to identify network interface on the local network. This is done on the ARP level.
This function adds a network interface in the inventory.
setAccessLog()
What is that for? :)
flushXMlTags()
Clear the content of $common->{xmltags} (to use after adding it in XML)
POD ERRORS
Hey! The above document had some coding errors, which are explained below:
Around line 34:
'=item' outside of any '=over'
perl v5.14.2 2012-04-12 Ocsinventory::Agent::Common(3pm)