i have this script that searches for a pattern.
However it fails if the pattern includes some
special characters. So far, it fails with the
following strings:
1. -Cr
2. $Mj
3. H'412
would a sed or awk be more effective?
i don't want the users to put the (\)
during the search (they... (5 Replies)
Hi. Does anyone know how to use the sed command to change the special border characters on this .per file. I have to edit about 80 .per files. I need a sed script to change the below 3 and A characters.
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Test Islands, Office of Public Health -- WIC... (4 Replies)
Hi everyone
I have file1 contains:
'7832'
' 8765
6543
I want a sed command that will format as:
'7832' , '8765' , '6543'
I tried
sed -e s/\'//g -e 's/^*//;s/*$//' file1 > file2
sed -e :a -e '$!N; s/\n/ /; ta' file2
which gives: 7832 8765 6543
I need some help to continue with... (5 Replies)
Hello All
Seeking the right one SED command.
My attempt is:
From orginal.txt by SED to target.txt
sed -i "/('outbound-callerid/a\$ext->add($context, $exten, '', new ext_SipAddHeader('P-Preferred-Identity', '<sip:${CALLERID(nummer)}@carrier.com>'));" orginal.txtWhat am make wrong?:wall:
... (5 Replies)
Need help in escaping special characters in sed command.
Here is the the string which i am trying to find a replace with
From :- REQUEST_TYPE=PIXEL&MSG_ID={//MESSAGE_ID}
To :- REQUEST_TYPE=PIXEL&MSG_ID= X_EDELIVERY_MESSAGE_ID & BATCH_ID= X_EDELIVERY_BATCH_ID
Here is the sed command i am... (2 Replies)
Hi I'm trying to replace string1 by string2 in file homepage.htm as follows but is not working. Please Help:
sedsed -i "s@'://your server name:port/test/owa'@'://11.22.33.44:5555/pls/SAMPLE'@g" homepage.htm
Where,
String1 ://your server name:port/test/owa
String2... (3 Replies)
Hi,
I have a file with this line, it's always in the first line:
I want to remove these special characters: ´╗┐
file1
´╗┐\\bar\c$\test2\;3.348.118 Bytes;160 ;3
\\bar\c$\test\;35 Bytes;2 ;1
I want the same file to be only
\\bar\c$\test2\;3.348.118 Bytes;160 ;3
\\bar\c$\test\;35... (4 Replies)
I am dusting off the sed cobwebs and had a basic question:
I have a file that contains:
$firewall = "on";
$cache = "on";
$dataset{'mary had a little lamb'} = "on";
and want to only change the contents of what is between the single quotes:
$dataset{'big bad wolf'} = "on";
I... (3 Replies)
I have the foolowing data file:
File1
<p name="A">5004</p>
<p name="B">5004</p>
<p name="C">5004</p>
<p name="A">15004</p>
<p name="B">15004</p>
<p name="C">15004</p>
In a while loop using sed (100 of line need to be replace), I need the output to File3:... (2 Replies)
Discussion started by: bobo
2 Replies
LEARN ABOUT DEBIAN
opendkim-atpszone
opendkim-atpszone(8) System Manager's Manual opendkim-atpszone(8)NAME
opendkim-atpszone - DKIM ATPS zone file generation tool
SYNOPSIS
opendkim-atpszone [-A] [-C address] [-E secs] [-h hash] [-N ns[,...]] [-o file] [-r secs] [-R secs] [-S] [-t secs] [-T secs] [-v]
[dataset]
DESCRIPTION
opendkim-atpszone generates a file suitable for use with named(8) to publish a set of domains authorized as third-party signers for a local
domain.
The dataset parameter should specify a set of data as described in the opendkim(8) man page. It can currently refer to flat files, Sleepy-
cat databases, comma-separated lists, LDAP directories or SQL databases. The keys in the named database are assumed to comprise a set of
domains that are to be advertised using the experimental Authorized Third-Party Signers protocol as permitted to sign mail using DKIM on
behalf of the local domain. Values in the database are not used.
OPTIONS -A Adds a "._atps" suffix to records in the zone file.
-C contact
Uses contact as the contact information to be used when an SOA record is generated (see -S below). If not specified, the userid of
the executing user and the local hostname will be used; if the executing user can't be determined, "hostmaster" will be used.
-E secs
When generating an SOA record (see -S below), use secs as the default record expiration time. The default is 604800.
-h hash
Specifies which SHA hash algorithm to use. Must be one of "none", "sha1" and "sha256", with "sha256" being the default if it is
available.
-N nslist
Specifies a comma-separated list of nameservers, which will be output in NS records before the TXT records. The first nameserver in
this list will also be used in the SOA record (if -S is also specified) as the authority hostname.
-o file
Sends output to the named file rather than standard output.
-r secs
When generating an SOA record (see -S below), use secs as the zone refresh time. The default is 10800.
-R secs
When generating an SOA record (see -S below), use secs as the zone retry time. The default is 1800.
-S Asks for an SOA record to be generated at the top of the output. The content of this output can be controlled using the -E, -r, -R,
-T options. The serial number will be generated based on the current time of day.
-t ttl Puts a TTL (time-to-live) value of ttl on all records output. The units are in seconds.
-T secs
When generating an SOA record (see -S below), use secs as the default record TTL time. The default is 86400.
-v Increases the verbosity of debugging output written to standard error.
VERSION
This man page covers the version of opendkim-atpszone that shipped with version 2.6.8 of OpenDKIM.
COPYRIGHT
Copyright (c) 2011, 2012, The OpenDKIM Project. All rights reserved.
SEE ALSO opendkim(8), opendkim.conf(5)
The OpenDKIM Project opendkim-atpszone(8)