I have a script that is reading an existing report, pulling out the customer code, then tacking on the customer name from another file and replacing the existing customer code with the new field. This was written for me by someone else. I'm not real familiar with sed.
The data is getting into... (3 Replies)
Greetings,
I am doing something that I don't know if it is possible...
I have a file with a line looks like this:
<%s \n%s / %s \n%s \n>
and I am trying to replace this line with
<%s \n%s \n%s / %s \n%s \n>
in Shell script with sed command...
StringToReplace='%s \n%s / %s \n%s \n'... (2 Replies)
Hi,
I am beginner to Shell Scripting.
I have a String like this "testabcdef", i need the first character as it is and the remaining character should be replaced by the the '*' character. e.g(t***********)
PLZ Suggest me. (5 Replies)
I would like to replace /n with ',' and after replace remove last semicolon then put a open brace in starting and closing brace in end of line. See below example:
input:
1234
3455
24334
234
output:
('1234,'3455',24334','234')
Thanks (3 Replies)
How can I replace the follong text including to number 7000?
cat tmp0.txt
Winston (UK) Wong
I would the 7000 to replace Winston (UK) Wong.
I fail with method below:
sed ' s /Winston\(UK\)Wong/7000 tmp0.txt' (1 Reply)
Hi,
First find the special character, from the special character take next two bytes convert the bytes to decimal and replace with next present byte of decimal value times.
E.g.
Input: 302619ú1A?
Output: 302619(3 spaces for ú1A)??????????????????????????
Thanks,
Dines (27 Replies)
Hi,
I have a string wherein i need to replace special characters with backslash and that character.
Ex:
If my string is a=qwerty123@!,
then the new string should be a_new=qwerty123\@\!\,
Thanks (3 Replies)
Hi All,
I have a text file that contains
I1SP2 *=*=Y=M=D001D
My requirement is to replace all occurrence of =* to =Z
expected o/p is I1SP2 *=Z=Y=M=D001D
I have tried with
sed 's/=*/=Z/g' file
sed 's!\=*!\=Z/g' file
sed 's!\=*!\=Z!g' file
sed 's!\=\*!\=Z!g' file
but its not... (3 Replies)
Discussion started by: gotamp
3 Replies
LEARN ABOUT DEBIAN
shorewall-proxyarp
SHOREWALL-PROXYARP(5) [FIXME: manual] SHOREWALL-PROXYARP(5)NAME
proxyarp - Shorewall Proxy ARP file
SYNOPSIS
/etc/shorewall/proxyarp
DESCRIPTION
This file is used to define Proxy ARP. There is one entry in this file for each IP address to be proxied.
The columns in the file are as follows.
ADDRESS - address
IP Address.
INTERFACE - interface (Optional as of Shorewall 4.4.16)
Local interface where system with the ip address in ADDRESS is connected. This column is only required when HAVEROUTE is set to No (no)
or is left empty.
EXTERNAL - interface
External Interface to be used to access this system from the Internet.
HAVEROUTE - [-|Yes|No]
If there is already a route from the firewall to the host whose address is given, enter Yes or yes in this column. Otherwise, enter no
or No or leave the column empty and Shorewall will add the route for you. If Shorewall adds the route, its persistence depends on the
value of thePERSISTENT column contains Yes; otherwise, shorewall stop or shorewall clear will delete the route.
PERSISTENT - [-|Yes|No]
If HAVEROUTE is No or no, then the value of this column determines if the route added by Shorewall persists after a shorewall stop or a
shorewall clear. If this column contains Yes or yes then the route persists; If the column is empty or contains No or no then the route
is deleted by shorewall stop or shorewall clear.
EXAMPLE
Example 1:
Host with IP 155.186.235.6 is connected to interface eth1 and we want hosts attached via eth0 to be able to access it using that
address.
#ADDRESS INTERFACE EXTERNAL
155.186.235.6 eth1 eth0
FILES
/etc/shorewall/proxyarp
SEE ALSO
http://shorewall.net/ProxyARP.htm
http://shorewall.net/configuration_file_basics.htm#Pairs
shorewall(8), shorewall-accounting(5), shorewall-actions(5), shorewall-blacklist(5), shorewall-hosts(5), shorewall_interfaces(5),
shorewall-ipsets(5), shorewall-maclist(5), shorewall-masq(5), shorewall-nat(5), shorewall-netmap(5), shorewall-params(5),
shorewall-policy(5), shorewall-providers(5), shorewall-rtrules(5), shorewall-routestopped(5), shorewall-rules(5), shorewall.conf(5),
shorewall-secmarks(5), shorewall-tcclasses(5), shorewall-tcdevices(5), shorewall-tcrules(5), shorewall-tos(5), shorewall-tunnels(5),
shorewall-zones(5)
[FIXME: source] 06/28/2012 SHOREWALL-PROXYARP(5)