11-30-2015
Please use code tags as required by forum rules!
Any attempts/ideas/thoughts from your side?
What is the "unix 1 byte delimiter"? In your sample, I see you replace some spaces with pipes, and some not. Please describe the logics.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can some one give me a list of unix separtor(s) if one than just the separator please thank you. (2 Replies)
Discussion started by: Black mage2021
2 Replies
2. Shell Programming and Scripting
In my server migration requirement, I need to compare if one file on old server is exactly the same as the corresponding file on the new server.
For diff and comm, the inputs need to be sorted. But I do not want to disturb the content of the file and need to find byte-to-byte match.
Please... (4 Replies)
Discussion started by: krishmaths
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I want to replace a field in a text delimited file with the actual number of records in the same file.
HDR|ABCD|10-13-2008 to 10-19-2008.txt|10-19-2008|XYZ
DTL|0|5464-1|0|02-02-2008|02-03-2008||||F|||||||||
DTL|1|5464-1|1|02-02-2008|02-03-2008|1||JJJ... (3 Replies)
Discussion started by: ravi0435
3 Replies
4. UNIX for Dummies Questions & Answers
Hello All,
I have a file with thousands of records:
eg:
|000222|123456987|||||||AARONSON| JOHN P|||PRIMARY |P
|000111|567894521|||||||ATHENS| WILLIAM k|||AAAA|L
Expected:
|000222|123456987|||||||AARONSON| JOHN |P|||PRIMARY |P
|000111|567894521|||||||ATHENS| WILLIAM |k|||AAAA|L
I... (6 Replies)
Discussion started by: OSD
6 Replies
5. Shell Programming and Scripting
Hi
I have an input CSV file which contains some values
Format of file is as follows:
32R01000000003144476;32R01000000029054270;1000;6000;12/12/2007;0382521276;REG;Régulari
I just need to validate it whether it is ';' seperated ie (if any other seperator is used it shld give an error)
How do... (5 Replies)
Discussion started by: theeights
5 Replies
6. Shell Programming and Scripting
Hi,
I need to split the fields in some text strings into separate variables.
The fields are separated by pipes.
The strings look roughly like this:
CUSTNAME|hostname|userid|gecos field|staff|disabled||SUDO
Currently I can do it using something like cut -d"|" -f1, but when I put that into... (4 Replies)
Discussion started by: alanp36
4 Replies
7. UNIX for Dummies Questions & Answers
Can you point me to information on the different delimited in UNIX like colon, spaces and tabs? (1 Reply)
Discussion started by: momhef4
1 Replies
8. Shell Programming and Scripting
Hi,
I have a pipe delimited file as below and I need to replace the 2nd column of each line with null values.
1|10/15/2011|fname1|lname1
2|10/15/2012|fname2|lname2
3|10/15/2013|fname3|lname3
Output file:
1||fname1|lname1
2||fname2|lname2
3||fname3|lname3
I tried this
... (2 Replies)
Discussion started by: member2014
2 Replies
9. Shell Programming and Scripting
I have a pipe delimited file and I'm trying to write a script that will give the character/byte positions of each pipe in the file. There may be some simple way but I don't know what it is... Can someone help with this?
Ex: file has output below
abc|def|ghi|
I want the script to tell the... (1 Reply)
Discussion started by: basz808
1 Replies
LEARN ABOUT DEBIAN
mail::spamassassin::plugin::replacetags
Mail::SpamAssassin::Plugin::ReplaceTags(3pm) User Contributed Perl Documentation Mail::SpamAssassin::Plugin::ReplaceTags(3pm)
NAME
Mail::SpamAssassin::Plugin::ReplaceTags - tags for SpamAssassin rules
The plugin allows rules to contain regular expression tags to be used in regular expression rules. The tags make it much easier to
maintain complicated rules.
Warning: This plugin relies on data structures specific to this version of SpamAssasin; it is not guaranteed to work with other versions of
SpamAssassin.
SYNOPSIS
loadplugin Mail::SpamAssassin::Plugin::ReplaceTags
replace_start <
replace_end >
replace_tag A [a@]
replace_tag G [gk]
replace_tag I [il|!1y?xccxcdxcexcfxecxedxeexef]
replace_tag R [r3]
replace_tag V (?:[vu]|\/)
replace_tag SP [s~_-]
body VIAGRA_OBFU /(?!viagra)<V>+<SP>*<I>+<SP>*<A>+<SP>*<G>+<SP>*<R>+<SP>*<A>+/i
describe VIAGRA_OBFU Attempt to obfuscate "viagra"
replace_rules VIAGRA_OBFU
RULE DEFINITIONS AND PRIVILEGED SETTINGS
replace_tag tagname expression
Assign a valid regular expression to tagname.
Note: It is not recommended to put quantifiers inside the tag, it's better to put them inside the rule itself for greater flexibility.
replace_pre tagname expression
Assign a valid regular expression to tagname. The expression will be placed before each tag that is replaced.
replace_inter tagname expression
Assign a valid regular expression to tagname. The expression will be placed between each two immediately adjacent tags that are
replaced.
replace_post tagname expression
Assign a valid regular expression to tagname. The expression will be placed after each tag that is replaced.
replace_rules list_of_tests
Specify a list of symbolic test names (separated by whitespace) of tests which should be modified using replacement tags. Only simple
regular expression body, header, uri, full, rawbody tests are supported.
replace_start string
replace_end string
String(s) which indicate the start and end of a tag inside a rule. Only tags enclosed by the start and end strings are found and
replaced.
perl v5.14.2 2011-06-06 Mail::SpamAssassin::Plugin::ReplaceTags(3pm)