I am new to unix and have come across the sed expression but not sure what its doing. Can someone please tell me whats happening in the sed command below? (2 Replies)
Have a textfile (regular updated) with informations about datafiles .
Each line is describing a datafile. Now I am trying to delete several specific lines in this textfile, which are defined before in a kind of removal list.
Can not find the mistake I have done in the script because in the... (5 Replies)
Hello everyone,
first post here, trying to learn scripting on my own and this forum as been really helpful so far. I made few little scripts working great but I m facing some problems with RE.
I have a bunch of files in many subdirectories called *001.ext *002.ext OR simple *.ext or *01.ext... (7 Replies)
Hello All,
I'm trying to extract the lines between two consecutive elements of an array from a file.
My array looks like:
problem_arr=(PRS111 PRS213 PRS234)
j=0
while } ]
do
k=`expr $j + 1`
sed -n "/${problem_arr}/,/${problem_arr}/p" problemid.txt
---some operation goes... (11 Replies)
Hello All,
I have something like below
LDC100/rel/prod/libinactrl.a
LAA2000/rel/prod/libinactrl.a
I want to remove till first forward slash that is outputshould be as below
rel/prod/libinactrl.a
rel/prod/libinactrl.a
How can I do that ??? (8 Replies)
I am learning SED and just following the shell scripting book, i have trouble understanding the grep and sed statement,
Question : 1
__________
/opt/oracle/work/antony>cat teledir.txt
jai sharma 25853670
chanchal singhvi 9831545629
anil aggarwal 9830263298
shyam saksena 23217847
lalit... (7 Replies)
Hi , I need to remove pipe character from a |^ delimeted file.
Something like |^tran|sformers||^|revenge |of fallen|^ to
|^transformers|^revenge of fallen|^...
Cold anybody please help to build the regular expression using sed .
many thanks.
Please use code tags next time for... (1 Reply)
I have below expression from which I would like to output +m= value:
"ginger bread.k +log ../output1 -format +m=3 0 +sleep 10 +suspend 10"
The output value should be "3" Any suggestions? (2 Replies)
Discussion started by: bskumarb4u
2 Replies
LEARN ABOUT DEBIAN
aoe-interfaces
aoe-interfaces(8) System Manager's Manual aoe-interfaces(8)NAME
aoe-interfaces - restrict aoe driver to specified network interfaces
SYNOPSIS
aoe-interfaces [dev1] [dev2 ...]
aoe-interfaces -c
DESCRIPTION
The aoe-interfaces command tells the aoe driver to ignore ATA over Ethernet (AoE) traffic on all but the specified network interfaces. It
is analogous to the aoe_iflist module load option.
If neither the aoe_iflist module load option nor the aoe-interfaces command are used, the aoe driver will use any network interface for AoE
traffic. Using aoe-interfaces to limit AoE to only trusted networks prevents the case where a rogue AoE target appears on a public net-
work, diverting data from the legitimate AoE target. Such an imposter target effectively corrupts the data on the legitimate target.
If the aoe driver is a module, then calling aoe-interfaces without arguments will display the current interfaces list. If it hasn't been
set then the output will be blank.
It's good to run the aoe-discover command after setting the AoE interfaces list.
OPTIONS -c The -c flag will clear the interface access list, permitting any interface to be used.
EXAMPLE
In this example, the root user on a host named nai loads the aoe module with only eth0 allowable for AoE traffic. After remembering that
shelf 7 is on eth3, this sysadmin uses aoe-interfaces to add eth3 to the list of allowable network interfaces and then calls aoe-discover
to ask the aoe driver to look for new AoE devices.
nai:~# modprobe aoe aoe_iflist="eth0"
nai:~# aoe-stat
e10.9 eth0 up
nai:~# aoe-interfaces eth0 eth3
nai:~# aoe-discover
nai:~# aoe-stat
e7.0 eth3 up
e7.1 eth3 up
e7.2 eth3 up
e7.3 eth3 up
e7.4 eth3 up
e7.5 eth3 up
e7.6 eth3 up
e7.7 eth3 up
e7.8 eth3 up
e7.9 eth3 up
e10.9 eth0 up
nai:~# aoe-interfaces
eth0 eth3
SEE ALSO aoe-discover(8), aoe-stat(8), aoetools(8).
AUTHOR
Ed L. Cashin (ecashin@coraid.com)
aoe-interfaces(8)