Hi
I am basically checking if a required entry exists within a file. In the code below I am fetching all directories of the format rel1, rela, rel3..etc..The same entries also exist in the sample log file. I want to check if entry in file1 exists within file2 but it is failing. Can you please... (4 Replies)
I'm still beginner and maybe someone can help me.
I have this input:
the great warrior a, b, c
and what i want to know is, with awk, how can i detect the string with 'warrior' string on it and print the a, b, and c seperately, become like this :
Warrior Type
a
b
c
Im still very... (3 Replies)
I need to get notification via email when the line containing a pattern is changed in a file. Not during the time any changes to file occurs. Ie if we reset a user password say example, demouser the hash in the line containing the word demouser in the file /etc/group changes. So when this change... (1 Reply)
Hello All,
can someone please suggest me a one line command to change a specific value that is associated to an entry in the file.
for example
#more schedulefile
quartz.job.manual.bonus.schedule=0 0 9 ? * *
#
it should be changed to
#more schedulefile... (5 Replies)
Hi guys, I'm new to bash programming, so please pardon me.
I'm trying to replace an entry's text in Books.txt
This code works perfectly:
sed -i "s/$BookTitle/$NewBookTitle/g" Books.txt
But problem is, if there are double entries, it will also replace that entry. For example:
... (12 Replies)
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
file1
cat
dog
fish
file2
This is a bunch of lines
<!-- INSERT ANIMALS HERE -->
horse
cheetah
post results
file2
This is a bunch of lines
<!-- INSERT ANIMALS HERE -->
cat
dog
fish
horse (1 Reply)
Hello.
Here is a file contents :
declare -Ax NEW_FORCE_IGNORE_ARRAY=(="§" ="§" ="§" ="§" ="§" .................. ="§"Here is a pattern
=I want to extract 'NEW_FORCE_IGNORE_ARRAY' which is the whole word before the first occurrence of pattern '='
Is there a better solution than mine :... (3 Replies)
Discussion started by: jcdole
3 Replies
LEARN ABOUT DEBIAN
setether
SETETHER(8) System Manager's Manual SETETHER(8)NAME
setether - Set the ethernet address for use with DECnet
SYNOPSIS
setether <if> [<if>...]|all [options]
DESCRIPTION
Set ethernet MAC address on ethernet adaptors
This script should be run at system startup. It will change the ethernet hardware (MAC) address of any or all ethernet interfaces to match
the DECnet node address. DECnet requires that the MAC address of all ethernet adaptors running the protocol be set approriately. If you do
not run setether then you must change the ethernet address in some other way for DECnet to work.
By default no ethernet interfaces will have their MAC addresses changed by setether, if you specify all then all interfaces name eth* will
be changed, otherwise a list of interface names can be specified. setether will enable (UP) all interfaces it changes the MAC addresses
of.
(2.4 only) The first interface specified on the command-line will also be made the default interface for DECnet operations (ie attempts to
contact nodes not in the neighbour table will be done over this interface).
This script must be run with the interface inactive, it is normally run from /etc/init.d/decnet before TCP/IP starts up.
EXAMPLES
set the MAC address of eth0.
# /sbin/setether eth0
set the MAC address of all ethernet interfaces
# /sbin/setether all
HELPFUL HINTS
If you have multiple ethernet cards on your system and they are connected to the the same network you should specify which one you want to
use for DECnet communication on the setether command line, otherwise they will both be given the same MAC address and this is probably not
what you want.
Running DECnet on multiple ethernet interfaces only works under Linux 2.4. If you are running Linux 2.2 then the interface name on the
setether command line must match the one in /etc/decnet.conf(5).
SEE ALSO decnet.conf(5), dntype(1), dndir(1), dndel(1), dnetd(8), dnping(1)DECnet utilities March 01 2001 SETETHER(8)