I want change my IP address and hostname in my machine by use the console. Can any one tell me how can I execute that by command ?
Thanks & Regards (1 Reply)
Couldn't find much help on the kind of question I've here:
There is this text file with text as:
Line one has a bingo
Line two does not have a bingo but it has a tango
Bingo is on line three
Line four has both tango and bingo
Now I would want to search for the pattern "bingo" in this file... (3 Replies)
Good Day,
Im new to scripting especially awk and sed. I just would like to ask help from you guys about a sed command that prints the line immediately after a regexp, but not the line containing the regexp.
sed -n '/regexp/{n;p;}' filename
What if my regexp is 3 word or a sentence. Im... (3 Replies)
Basically it should identify what ever is in between /*< >*/ (tags) and replace dbname ending with (.) with the words in between the tags
i.e.
DELETE FROM /*<workDB>*/epd_test./*<multi>*//*<version>*/epd_tbl1 ALL; into
DELETE FROM... (4 Replies)
This is probably a real n00b question but i`m not able to figure it out.
I have a folder of configuration files that contain IP-adresses. The line i`m interested in looks like this:
IP_ADDRESS="123.123.123.1123"
Some have muliple ip adresses, so the line will look like :
... (5 Replies)
Hi all,
I'm not clear of this regexp command:
regexp {(\S+)\/+$} $String match GetString
From my observation and testing,
if $String is abc/def/gh
$GetString will be abc/def
I don't understand how the /gh in $String got eliminated.
Please help. Thanks (2 Replies)
How to use regexp to print out repetitive pattern in awk?
$ awk '{print $0, "-\t-\t-\t-\t-\t-\t-\t-\t-\t-\t-\t-"}' output:
- - - - - - - - - - - -I tried following which does not give what I want, of course.
awk '{print $0, "-\t{11}-"}'
output:
- ... (10 Replies)
Hi
I am writing a TCL script to delete a certain in a file
My Input file
module bist_logic_inst(a, ab , dhd, dhdh , djdj, hdh, djjd, jdj, dhd, dhp, dk
);
input a;
input ab;
input dhd;
input djdj;
input dhd;
output hdh;
output djjd;
output jdj;
output dk; (1 Reply)
Discussion started by: kshitij
1 Replies
LEARN ABOUT DEBIAN
shorewall-ipsets
SHOREWALL-IPSETS(5) [FIXME: manual] SHOREWALL-IPSETS(5)NAME
ipsets - Specifying the name if an ipset in Shorewall configuration files
SYNOPSIS
+ipsetname
+ipsetname[flag,...]
+[ipsetname,...]
DESCRIPTION
Note: In the above syntax descriptions, the square brackets ("[]") are to be taken literally rather than as meta-characters.
In most places where a network address may be entered, an ipset may be substituted. Set names must be prefixed by the character "+", must
start with a letter and may be composed of alphanumeric characters, "-" and "_".
Whether the set is matched against the packet source or destination is determined by which column the set name appears (SOURCE or DEST).
For those set types that specify a tupple, two alternative syntaxes are available:
[number] - Indicates that 'src' or
'dst' should repleated number times. Example: myset[2].
[flag,...] where
flag is src or
dst. Example: myset[src,dst].
In a SOURCE column, the following pairs are equivalent:
o +myset[2] and +myset[src,src]
In a DEST column, the following paris are equivalent:
o +myset[2] and +myset[dst,dst]
Beginning with Shorewall 4.4.14, multiple source or destination matches may be specified by enclosing the set names within +[...]. The set
names need not be prefixed with '+'. When such a list of sets is specified, matching packets must match all of the listed sets.
For information about set lists and exclusion, see shorewall-exclusion[1] (5).
EXAMPLES
+myset
+myset[src]
+myset[2]
+[myset1,myset2[dst]]
FILES
/etc/shorewall/accounting
/etc/shorewall/blacklist
/etc/shorewall/hosts -- Note: Multiple matches enclosed in +[...] may not be used in this file.
/etc/shorewall/maclist -- Note: Multiple matches enclosed in +[...] may not be used in this file.
/etc/shorewall/masq
/etc/shorewall/rules
/etc/shorewall/secmarks
/etc/shorewall/tcrules
SEE ALSO shorewall(8), shorewall-accounting(5), shorewall-actions(5), shorewall-blacklist(5), shorewall-hosts(5), shorewall_interfaces(5),
shorewall-maclist(5), shorewall-masq(5), shorewall-nat(5), shorewall-netmap(5), shorewall-params(5), shorewall-policy(5),
shorewall-providers(5), shorewall-proxyarp(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)NOTES
1. shorewall-exclusion
http://www.shorewall.net/manpages/shorewall-exclusion.html
[FIXME: source] 06/28/2012 SHOREWALL-IPSETS(5)