I am trying to match a pattern exactly in a shell script. I have tried two methods
awk '/\<mpath${CURR_MP}\>/{print $1 $2}' multipath
perl -ne '/\bmpath${CURR_MP}\b/ and print' /var/tmp/multipath
Both these methods require that I use the escape character. I am guessing that is why... (8 Replies)
I am trying to parse iostat output for io issues..
I want to print all lines including second occurance of 'extended' till EOF(end of file). Can we do that using awk or sed one liners or do we need a script for it? (1 Reply)
Hi All,
I am in need of help. I want to match a value of each row in “file 1” with the value of first row in “file 2” and print out only the columns that match. How can I do it in awk? Any help is greatly appreciated.
for example, I have two files:
Cat “File 1”
ID
3
8
15
Cat “File... (2 Replies)
I have thousands of tables compiled in a single txt document that I'm parsing with AWK. Scattered throughout the document in random sections I would like to parse out the sections that look like this:
1 Seq. Descrição do bem Tipo do bem Valor do bem (R$)
2 1 LOCALIZADO ANA RUA PESSEGO N 96... (3 Replies)
Hi,
My input files is like this
axis1 0 1 10
axis2 0 1 5
axis1 1 2 -4
axis2 2 3 -3
axis1 3 4 5
axis2 3 4 -1
axis1 4 5 -6
axis2 4 5 1
Now, these are my following tasks
1. Print a first column for every two rows that has the same value followed by a string.
2. Match on the... (3 Replies)
Hi,
I want to print the lines from file1 which has the matching pattern from file2 in linux.
file1 data is below
-----------------
CACA|1234
CA|2345
file2 data is below
-----------------
CA
NC
TX
Now I want to print the lines from file1 for the values present in file2.
... (5 Replies)
Hello,
I have a file contains two columns. I need to print the lines after “xxx” so i'm trying to match "xxx" & cut the lines after that. I'm trying with the grep & cut command, if there any simple way to extract this please help me.
Sample file :
name id
AAA 123
AAB 124
AAC 125... (4 Replies)
In the awk below I am trying to output those lines that Match between file1 and file2, those Missing in file1, and those missing in file2. Using each $1,$2,$4,$5 value as a key to match on, that is if those 4 fields are found in both files the match, but if those 4 fields are not found then missing... (0 Replies)
Hi, i have file file.txt with data like:
START
03:11:30 a
03:11:40 b
END
START
03:13:30 eee
03:13:35 fff
END
jjjjjjjjjjjjjjjjjjjjj
START
03:14:30 eee
03:15:30 fff
END
ggggggggggg
iiiiiiiiiiiiiiiiiiiiiiiii
I want the below output
START (13 Replies)
Discussion started by: Jyotshna
13 Replies
LEARN ABOUT XFREE86
victronups
VICTRONUPS(8) NUT Manual VICTRONUPS(8)NAME
victronups - Driver for IMV/Victron UPS unit Match, Match Lite, NetUps
NOTE
This man page only documents the hardware-specific features of the the victronups driver. For information about the core driver, see
nutupsdrv(8).
SUPPORTED HARDWARE
The victronups driver should recognize all Victron models that use a serial protocol at 1200 bps. These include Match Lite, Match and the
NetUps line.
The Match Lite line may only report a handful of variables. This is usually not a bug - they just don't support anything else.
CABLING
If your Victron cable is broken or missing, use this diagram to build a clone:
docs/cables/victron.txt
EXTRA ARGUMENTS
This driver supports the following optional setting in the ups.conf(5):
modelname=name
Set model name
usd=delay
Set delay before shutdown on UPS
BUGS
The protocol for this UPS is not officially documented.
AUTHOR
Radek Benedikt <benedikt@lphard.cz>, Daniel Prynych <Daniel.Prynych@hornet.cz>
SEE ALSO
The core driver:
nutupsdrv(8)
Internet resources:
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
Network UPS Tools 05/21/2012 VICTRONUPS(8)