From your post what i understood is you need a file which contains filtered content of header and rule for filter is given by a file.
let's say rule file is rule.txt (containing A_1 A_2 etc) and file with header is file.html
Last edited by Scrutinizer; 02-11-2013 at 07:55 PM..
Reason: code tags
Hi,
I have file 1.txt with following entries as shown:
0152364|134444|10.20.30.40|015236433
0233654|122555|10.20.30.50|023365433
**
**
**
In file 2.txt I have the following entries as shown:
0152364|134444|10.20.30.40|015236433
0233654|122555|10.20.30.50|023365433... (4 Replies)
Hii I have a file which contains huge amounts of data.I just want to delete last 3 columns in the without changing its format.The file contains data as shown below
PDE 2001 10 29 202148.60 38.92 24.20 33 4.8 MLATH .F. .......
PDE 2001 10 29 203423.57 38.88 24.41 33 3.7 MLATH... (3 Replies)
I have this space delimited large text file with more than 1,000,000+ columns and about 100 rows. I want to delete all the columns that start with NA such that:
File before modification
aa bb cc NA100 dd
aa b1 c2 NA101 de
File after modification
aa bb cc dd
aa b1 c2 de
How would I... (3 Replies)
Hello sed gurus. I am using ksh on Sun and have a file created by concatenating several other files. All files contain header rows. I just need to keep the first occurrence and remove all other header rows.
header for file
1111
2222
3333
header for file
1111
2222
3333
header for file... (8 Replies)
Hi All
I am having pipe seperated inputs like
Adam|PeteR|Josh|PEter
Nick|Rave|Simon|Paul
Steve|smith|PETER|Josh
Andrew|Daniel|StAlin|peter
Rick|PETer|ADam|RAVE
i want to repleace all the occurrence of peter (in any case pattern PeteR,PEter,PETER,peter,PETer) with Peter so that output... (5 Replies)
An extension from an earlier question. Now need a sed script to delete columns 7,15 and 16 from an example txt below..
Again, thanks in advance.
98M-01.WAV,98M,01,00:00:49,01:07:36:00,"MIX",,"BOOM-MKH50",,,,,,,,,,"",
98L-01.WAV,98L,01,00:00:51,01:01:45:00,"MIX",,"BOOM-MKH50",,,,,,,,,,"", (7 Replies)
i have a table like this:
id, senderNumber, blacklist
-----------------------------
1 0835636326 Y
2 0373562343 Y
3 0273646833 Y
and I want to delete automatically if a new inserted row on another table consist anything on senderNumber column above using a BASH Script
I... (9 Replies)
I had a spot of trouble coming up with a title, hopefully you'll understand once you read my problem... :)
I have the output of an ldapsearch that looks like this:
dn: cn=sam,ou=company,o=com
uidNumber: 7174
gidNumber: 49563
homeDirectory: /home/sam
loginshell: /bin/bash
uid: sam... (2 Replies)
I have a file
Line 1 a
Line 22
Line 33
Line 1 b
Line 22
Line 1 c
Line 4
Line 5
I want to delete all lines before last occurrence of a line which contains something which is defined in a variable. Say a variable var contains 'Line 1', then I need the following in the output.
... (21 Replies)
Discussion started by: Soham
21 Replies
LEARN ABOUT SUSE
gendarme
Gendarme(Gendarme 2.6.2.0) Gendarme(Gendarme 2.6.2.0)
NAME
Gendarme - Rule-based code analysis for Mono.
FILE FORMATS
ignore-file
This file is used to filter out defects from gendarme reports. It uses a line oriented file format where the first characters of the
line control the interpretation of the line:
# - means that the line is a comment.
R: - if the full name of a rule to be filtered.
A: - is used to filter out an assembly (the extension can be omitted).
T: - is used to filter out a namespace qualified type name.
M: - is used to filter out a method. It must contain the full method name as it appears in the report.
rules.xml
This file is used in conjunction with the --set option to control and configure the rules used by Gendarme. It contains a set of
named rules (rule sets) and each rule set contains a list of rules. Rules have required from and include attributes, optional
exclude and applyTo attributes, and optional parameter child elements.
The from attribute is the path of a dll to load ("Gendarme.Rules.BadPractice.dll"). Relative paths are relative to the gendarme
executable.
The include attribute may be "*" to match every rule in the dll or a list of rule names separated by '|' ("WhizBangRule | MyRule").
The exclude attribute is a list of rule names separated by '|' ("IckyRule"). These will override any rules matched by the include
attribute.
The applyTo attribute may be "all", "visible", or "nonvisible". If it is all (the default) then all types in the assemblies are
checked, if it is visible then only the externally visible types are checked, if it is nonvisible then only the internally visible
types are checked.
The parameter child element is used to customize the behavior of a rule within a dll. It has three required attributes: rule, prop-
erty, and value. rule is the name of the applicable rule ("AvoidSmallNamespaceRule"), property is the name of a public property in
the rule ("Minimum"), value is the value to assign to the property ("10").
gendarme.exe.config
Used by debug versions of Gendarme to enable logging for rules. A config file will be generated automatically by the make file. To
enable logging for a rule edit the config file, add a switch using the rule's name, and set the value to 1.
COPYRIGHT
Copyright (C) 2005-2009 Novell, Inc (http://www.novell.com)
MAILING LISTS
Mailing lists are listed at the http://groups.google.com/group/gendarme
WEB SITE
http://www.mono-project.com/Gendarme
SEE ALSO gendarme(1)
Gendarme(Gendarme 2.6.2.0)