01-30-2020
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
my input file(.txt) has the information like
-------------------------------------
WS=123hi4
wd=WAST,RDP
------------------------------------
i need out like
----------------------------------
"where WS='123hi4' and wd in ('WAST','RDP')" (2 Replies)
Discussion started by: kms.sekar
2 Replies
2. Shell Programming and Scripting
Hi,
I am trying to truncate word after comma in a file ONLY if there are already 2 words BEFORE comma. If there is one word or 3 or more words BEFORE comma, then I have to leave the data AS IS. See below for example.
Input File :
John Smith, Manager
Smith, John Frank
J F K... (2 Replies)
Discussion started by: msalam65
2 Replies
3. Shell Programming and Scripting
without using conventional file searching commands like find etc, is it possible to locate a file if i just know that the file that i'm searching for contains a particular text like "Hello world" or something? (5 Replies)
Discussion started by: arindamlive
5 Replies
4. Shell Programming and Scripting
Hi
Can any one pls tell me how to grep this line
POPULATION,69691,20120509
I want the number 69691 from the above line.
How to grep from the first comma till the next comma.
Thank You.:confused: (8 Replies)
Discussion started by: rxg
8 Replies
5. Shell Programming and Scripting
Hi,
I'm dealing with an issue and losing a lot of hours figuring out how i would solve this.
I have an input file which looks like this:
('BLABLA +200-GRS','Serviço ','TarifaçãoServiço','wap.bla.us.0000000121',2985,0,55,' de conversão em escada','Dia','Domingos')
('BLABLA +200-GRR','Serviço... (6 Replies)
Discussion started by: poliver
6 Replies
6. Shell Programming and Scripting
Hello there,
I have a comma separated csv , and all the text field is wrapped by double quote. Issue is some text field contain comma as well inside double quote. so it is difficult to process.
Input in the csv file is ,
1,234,"abc,12,gh","GH234TY",34
I need output like below,... (8 Replies)
Discussion started by: Uttam Maji
8 Replies
7. Shell Programming and Scripting
I,
I have a file and i need to replace comma and blank space with comma and 0.
cat file.txt
a,5
b,1
c,
d,
e,4
I need the output as
cat file.txt
a,5
b,1
c,0
d,0 (4 Replies)
Discussion started by: jaituteja
4 Replies
8. Shell Programming and Scripting
I have a comma delimited file of major codes and descriptions. I want to replace all occurrences of spaces with underscores up to the first comma (only in the first field), but not replace spaces following the comma. For instance I have the following snippet of the file:
EK ED,Elementary and... (7 Replies)
Discussion started by: tdouty
7 Replies
9. Shell Programming and Scripting
Hi Experts,
Please support
I have below data in file in comma seperated, but 4th column is containing comma in between numbers, bcz of which when i tried to parse the file the column 6th value(5049641141) is being removed from the file and value(222.82) in column 5 becoming value of column6.
... (3 Replies)
Discussion started by: as7951
3 Replies
10. UNIX for Beginners Questions & Answers
can anyone help me!!!! How to I parse the CSV file
file name : abc.csv (csv file) The above file containing data like
abv,sfs,,hju,',',jkk wff,fst,,rgr,',',rgr ere,edf,erg,',',rgr,rgr I have a requirement like i have to extract different field and assign them into different... (4 Replies)
Discussion started by: J.Jena
4 Replies
LEARN ABOUT DEBIAN
bcfg2-lint.conf
bcfg2-lint.conf(5) File Formats Manual bcfg2-lint.conf(5)
NAME
bcfg2-lint.conf - configuration parameters for bcfg2-lint
DESCRIPTION
bcfg2-lint.conf includes configuration parameters for
bcfg2-lint
FILE FORMAT
The file is INI-style and consists of sections and options. A section begins with the name of the sections in square brackets and continues
until the next section begins.
Options are specified in the form 'name = value'.
The file is line-based each newline-terminated line represents either a comment, a section name or an option.
Any line beginning with a hash (#) is ignored, as are lines containing only whitespace.
The file consists of one [lint] section, up to one [errors] section, and then any number of plugin-specific sections, documented below.
(Note that this makes it quite feasible to combine your bcfg2-lint.conf into your bcfg2.conf(5) file, if you so desire.)
GLOBAL OPTIONS
These options apply to bcfg2-lint generally, and must be in the [lint] section.
plugins
A comma-delimited list of plugins to run. By default, all plugins are run. This can be overridden by listing plugins on the com-
mand line. See bcfg2-lint(8) for a list of the available plugins.
ERROR HANDLING
Error handling is configured in the [errors] section. Each option should be the name of an error and one of error , warning , or silent ,
which tells bcfg2-lint(8) how to handle the warning. Error names and their defaults can be displayed by running bcfg2-lint(8) with the
--list-errors option.
PLUGIN OPTIONS
These options apply only to a single plugin. Each option should be in a section named for its plugin; for instance, options for the
InfoXML plugin would be in a section called [InfoXML]
If a plugin is not listed below, then it has no configuration.
In many cases, the behavior of a plugin can be configured by modifying how errors from it are handled. See ERROR HANDLING , above.
Comments
The Comments plugin configuration specifies which VCS keywords and comments are required for which file types. The valid types of
file are global (all file types), bundler (non-templated bundle files), sgenshi (templated bundle files), properties (property
files), cfg (non-templated Cfg files), tgenshi (templated Cfg files), infoxml (info.xml files), and probe (probe files).
The specific types (i.e., types other than "global") all supplement global; they do not override it. The exception is if you spec-
ify an empty option, e.g.:
cfg_keywords =
By default, the $Id$ keyword is checked for and nothing else.
Multiple keywords or comments should be comma-delimited.
o <type>_keywords
Ensure that files of the specified type have the given VCS keyword. Do not include the dollar signs. I.e.:
infoxml_keywords = Revision
not:
infoxml_keywords = $Revision$
o <type>_comments
Ensure that files of the specified type have a comment containing the given string. In XML files, only comments are checked. In
plain text files, all lines are checked since comment characters may vary.
InfoXML
o required_attrs A comma-delimited list of attributes to require on <Info> tags. Default is "owner,group,perms".
MergeFiles
o threshold The threshold at which MergeFiles will suggest merging config files and probes. Default is 75% similar.
Validate
o schema The full path to the XML Schema files. Default is "/usr/share/bcfg2/schema". This can be overridden with the --schema
command-line option
SEE ALSO
bcfg2-lint(8)
bcfg2-lint.conf(5)