11-28-2013
Hi,
@SShinde: Why lines 11 and 13 don't work ?
Regards.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I would like to do this:
replace the word "prod" with the word "special" but it may occur through the file naturally without a command, I only want it to happen when it has a specific command in front of it. The command will always look like this
<IMG,###,###,##,>prod/directory/IMG/file
... (4 Replies)
Discussion started by: Shakey21
4 Replies
2. Shell Programming and Scripting
Hi all,
I'm writing a script that replaces a value in a file. The file is formatted as follows:
So, for this example, I'd like to replace the value for param_two. The value for param_two can be a one, or two-digit number. It replaces the value in file.cfg, and directs the... (9 Replies)
Discussion started by: marknu1
9 Replies
3. Shell Programming and Scripting
From my understanding when using regex1|regex2 the matching process tries each alternative in turn, from left to right, and the first one that succeeds is used.
When im trying to extract the name from those examples:
A) name.can.be.different.20.03.2009.boom
B)... (2 Replies)
Discussion started by: TehOne
2 Replies
4. Shell Programming and Scripting
Hi All,
I have a doubt.
Can we assign a regular expression for pattern searching to a variable in a script and then use that variable in place of a regular expression in sed command.I tried but got some syntax error!!Is it not possible.Because my requirement is that i have a generic script to get... (8 Replies)
Discussion started by: usha rao
8 Replies
5. Shell Programming and Scripting
Hi All,
I am trying to use a sed command in a shell script in order to delete some lines in a file and I got the following error message.
I don't understand why it is not working 'cause I have tried with simple quotes, then with double-quotes, and it is not working.
sed: -e expression #1,... (7 Replies)
Discussion started by: Alpha3363
7 Replies
6. Shell Programming and Scripting
I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly:
if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Discussion started by: suntzu
1 Replies
7. UNIX for Advanced & Expert Users
Hi,
I tried to extract the time from `date` with sed.
(I know it works with `date +%H:%M:%S` as well)
I got three solutions of which just one worked. I thought "+" should repeat the previous expression 1 or more times and {n} should repeat the previous expression n times.
$ date
Thu... (9 Replies)
Discussion started by: thiuda
9 Replies
8. Shell Programming and Scripting
Hi all, please can anyone show me how to use sed and regular expressions to achieve the following.
If a line contains a capital A followed by exactly 5 or 6 characters followed by an angled bracket then insert an asterix before the angled bracket.
So:
XCONFIGA12345<X
Becomes:
... (5 Replies)
Discussion started by: Jedimark
5 Replies
9. Shell Programming and Scripting
I'm trying to get some exclusions into our sendmail regular expression for the K command. The following configuration & regex works:
LOCAL_CONFIG
#
Kcheckaddress regex -a@MATCH
+<@+?\.++?\.(us|info|to|br|bid|cn|ru)
LOCAL_RULESETS
SLocal_check_mail
# check address against various regex... (0 Replies)
Discussion started by: RobbieTheK
0 Replies
10. Shell Programming and Scripting
hi
i would like to say "DATABASENAME=" to "TABLESNAME="
remove "," and press enter myconfig file
thanks (1 Reply)
Discussion started by: mnnn
1 Replies
LEARN ABOUT DEBIAN
atalkd.conf
ATALKD.CONF(5) Netatalk 2.2 ATALKD.CONF(5)
NAME
atalkd.conf - Configuration file used by atalkd(8) to determine the interfaces used by the master Netatalk daemon
DESCRIPTION
/etc/netatalk/atalkd.conf is the configuration file used by atalkd to configure the Appletalk interfaces and their behavior
Any line not prefixed with # is interpreted. The configuration lines are composed like:
Interface [ options ]
The simplest case is to have either no atalkd.conf, or to have one that has no active lines. In this case, atalkd should auto-discover the
local interfaces on the machine. Please note that you cannot split lines.
The interface is the network interface that this to work over, such as eth0 for Linux, or le0 for Sun.
The possible options and their meanings are:
-addr net.node
Allows specification of the net and node numbers for this interface, specified in Appletalk numbering format (example: -addr 66.6).
-dontroute
Disables Appletalk routing. It is the opposite of -router.
-net first[-last]
Allows the available net to be set, optionally as a range.
-noallmulti (linux only)
On linux the interfaces, atalkd uses, are set to ALLMULTI by default caused by countless NICs having problems without being forced into
this mode (some even don't work with allmulti set). In case, you've a NIC known to support multicasts properly, you might want to set
this option causing less packets to be processed
-phase ( 1 | 2 )
Specifies the Appletalk phase that this interface is to use (either Phase 1 or Phase 2).
-router
Like -seed, but allows single interface routing. It is the opposite of -dontroute.
-seed
The seed option only works if you have multiple interfaces. It also causes all missing arguments to be automagically configured from
the network.
-zone zonename
Specifies a specific zone that this interface should appear on (example: -zone "Parking Lot"). Please note that zones with spaces and
other special characters should be enclosed in parentheses.
SEE ALSO
atalkd(8)
Netatalk 2.2 22 September 2000 ATALKD.CONF(5)