My data is xml'ish (here is an excerpt) :-
<bag name="mybag1" version="1.0"/>
<contents id="coins"/>
<bag name="mybag2" version="1.1"/>
<contents id="clothes"/>
<contents id="shoes"/>
<bag name="mybag3" version="1.6"/>
I want to delete line containing mybag2 and its subsequent... (5 Replies)
Hi Folks,
I got to know from this forums on how to grep from a particular line say line 6
awk 'NR==6 {print;exit}'
But how do i grep from line 6 till the end of the file or command output.
Thanks, (3 Replies)
Hello people,
I'm scratch my head to find a solution to my problem, I'm absolutely sure this is very simple!!! :wall:
I'm using the tcpdump to show on the screen in real time the UCP traffic:
tcpdump -l -i bond1 -s 1514 -nntttt -A src or dst 192.168.1.5 and port 10000 | egrep "/51/"The output... (5 Replies)
Dear all,
How can I print line starting with certain string together with its following line. Example is as follows:
Input file:
@M01596:22:000000000-A7YH7:1:1101:16615:1070 2:N:0:1... (2 Replies)
Hi,
I want to read a file line by line and exclude the lines that are beginning with special characters. The below code is working fine except when the line starts with hyphen (-) in the file.
for TEST in `cat $FILE | grep -E -v '#|/+' | awk '{FS=":"}NF > 0{print $1}'`
do
.
.
done
How... (4 Replies)
Hello,
I'm works on Ubuntu server
My goal : I would like to read file line per line, but i want to started at the end of file.
Currently, I use instructions :
while read line;
do
COMMAND
done < /var/log/apache2/access.log
But, the first line, i don't want this. The file is long... (5 Replies)
e.g.
File name: File.txt
cat File.txt
Result:
#INBOUND_QUEUE=FAQ1
INBOUND_QUEUE=FAQ2
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
I have a file with a list of references towards the end and want to apply a grep for some string.
text ....
@unnumbered References
@sp 1
@paragraphindent 0
2017. @strong{Chalenski, D.A.}; Wang, K.; Tatanova, Maria; Lopez,
Jorge L.; Hatchell, P.; Dutta, P.; @strong{Small airgun... (1 Reply)
Hi,
i have a file with multiple entries. After some tests with sed i managed to get the file output as follows:
lsn=X-LINK-IN0,apc=661:0,state=avail,avail/links=1/1,
00,2110597,2094790,0,81,529,75649011,56435363,
lsn=TM1ITP1-AM1ITP1-LS,apc=500:0,state=avail,avail/links=1/1,... (5 Replies)
Discussion started by: nms
5 Replies
LEARN ABOUT DEBIAN
array-info
array-info(1)array-info(1)NAME
array-info - check the status of a HP (Compaq) SmartArray controller
SYNOPSIS
array-info -d array_device_path [-a|-l|-A|-c|-s|-L|-h]
DESCRIPTION
Array-info is a command line tool to retrieve informations and logical drives status from several RAID controllers (currently HP Compaq IDA
and CISS and MD). It displays informations about the firmware version, Rom revision, number of physical and logical drives on the con-
troller, aswell as the fault tolerance, size, number of physical disks and status for each logical drive.
OPTIONS --device | -d
Path to array device, e.g. /dev/ida/c0d0 or /dev/cciss/c0d1
--all-drives | -a
Show informations about all drives
--logical drive | -l
Show informations about selected logical drive
--show-ctrl | -c
Show informations about controller
--show-logical | -L
Show informations about logical drives
--show-physical | -p
Show physical device informations
--show-status | -s
Show status of logical drives
--show-all | -A
Show all informations
--version | -V
Show version
-h Show help about options
COPYRIGHT
This manual page was written by Raphael Pinson <<raphink@ubuntu.com>>. Permission is granted to copy, distribute and/or modify this docu-
ment under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation.
2006-12-15 array-info(1)