Sponsored Content
Full Discussion: need help on sed
Top Forums Shell Programming and Scripting need help on sed Post 302242158 by redstone on Wednesday 1st of October 2008 09:15:44 AM
Old 10-01-2008
That works for A.
How about B variable? How can I cut "e1000g" out and only leave the last number or numbers to B? And I do need it work for bge0 as well.

Thanks!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sed Question 1. (Don't quite know how to use sed! Thanks)

Write a sed script to extract the year, rank, and stock for the most recent 10 years available in the file top10_mktval.csv, and output in the following format: ------------------------------ YEAR |RANK| STOCK ------------------------------ 2007 | 1 | Exxon... (1 Reply)
Discussion started by: beibeiatNY
1 Replies

2. Shell Programming and Scripting

Issue with a sed one liner variant - sed 's/ ; /|/g' $TMP1 > $TMP

Execution of the following segment is giving the error - Script extract:- OUT=$DATADIR/sol_rsult_orphn.bcp TMP1=${OUT}_tmp1 TMP=${OUT}_tmp ( isql -w 400 $dbConnect_OPR <<EOF select convert(char(10), s.lead_id) +'|' + s.pho_loc_type, ";", s.sol_rsult_cmnt, ";", +'|'+ s.del_ind... (3 Replies)
Discussion started by: kzmatam
3 Replies

3. Shell Programming and Scripting

sed over writes my original file (using sed to remove leading spaces)

Hello and thx for reading this I'm using sed to remove only the leading spaces in a file bash-280R# cat foofile some text some text some text some text some text bash-280R# bash-280R# sed 's/^ *//' foofile > foofile.use bash-280R# cat foofile.use some text some text some text... (6 Replies)
Discussion started by: laser
6 Replies

4. Shell Programming and Scripting

sed has zeored my files. Help me with sed please

i made a script to update a lot of xml files. to save me some time. Ran it and it replaced all the the files with a 0kb file. The problem i was having is that I am using sed to change xml node <doc_root>. The problem with this is it has a / in the closing xml tag and the stuff inside will also have... (4 Replies)
Discussion started by: timgolding
4 Replies

5. Shell Programming and Scripting

deleting text records with sed (sed paragraphs)

Hi all, First off, Thank you all for the knowledge I have gleaned from this site! Deleting Records from a text file... sed paragraphs The following code works nearly perfect, however each time it is run on the log file it adds a newline at the head of the file, run it 5 times, it'll have 5... (1 Reply)
Discussion started by: Festus Hagen
1 Replies

6. UNIX for Dummies Questions & Answers

SED: Can't Repeat Search Character in SED Output

I'm not sure if the problem I'm seeing is an artifact of sed or simply a beginner's mistake. Here's the problem: I want to add a zero-width space following each underscore between XML tags. For example, if I had the following xml: <MY_BIG_TAG>This_is_a_test</MY_BIG_TAG> It should look like... (8 Replies)
Discussion started by: rhetoric101
8 Replies

7. Shell Programming and Scripting

How to use sed to replace the a string in the same file using sed?

How do i replace a string using sed into the same file without creating a intermediate file? (7 Replies)
Discussion started by: gomes1333
7 Replies

8. Shell Programming and Scripting

sed inside sed for replacing string

My need is : Want to change docBase="/something/something/something" to docBase="/only/this/path/for/all/files" I have some (about 250 files)xml files. In FileOne it contains <Context path="/PPP" displayName="PPP" docBase="/home/me/documents" reloadable="true" crossContext="true">... (1 Reply)
Discussion started by: linuxadmin
1 Replies

9. Shell Programming and Scripting

sed and awk giving error ./sample.sh: line 13: sed: command not found

Hi, I am running a script sample.sh in bash environment .In the script i am using sed and awk commands which when executed individually from terminal they are getting executed normally but when i give these sed and awk commands in the script it is giving the below errors :- ./sample.sh: line... (12 Replies)
Discussion started by: satishmallidi
12 Replies

10. Shell Programming and Scripting

I am learning regular expression in sed,Please help me understand the use curly bracket in sed,

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)
Discussion started by: Antony Ankrose
7 Replies
e1000g(7D)																e1000g(7D)

NAME
e1000g, e1000 - Intel PRO/1000 Gigabit family of network interface controllers SYNOPSIS
/dev/e1000g The e1000g Gigabit Ethernet driver is a multi-threaded, loadable, clonable, GLD-based STREAMS driver supporting the Data Link Provider Interface, dlpi(7P), over Intel PRO/1000 family of Gigabit controllers. This driver supports multiple Intel Gigabit controllers installed within the system. The e1000g driver provides basic support including chip initialization, frame transmit and receive, multi- cast support, and error recovery and reporting. APPLICATION PROGRAMMING INTERFACE
The cloning, character-special device /dev/e1000g is used to access all Intel Gigabit devices installed within the system. The e1000g driver is managed by the dladm(1M) command line utility, which allows VLANs to be defined on top of bge instances and for bge instances to be aggregated. See dladm(1M) for more details. You must send an explicit DL_ATTACH_REQ message to associate the opened stream with a particular device (PPA). The PPA ID is interpreted as an unsigned integer data type and indicates the corresponding device instance (unit) number. The driver returns an error (DL_ERROR_ACK) if the PPA field value does not correspond to a valid device instance number. The values returned by the driver in the DL_INFO_ACK primitive in response to the DL_INFO_REQ are as follows: o The maximum SDU (with jumbo frame) is 16128 (ETHERMTU). o The minimum SDU is 0. The driver pads to the mandatory 60-octet minimum packet size. o The dlsap address length is 8. o The MAC type is DL_ETHER. o The sap length value is -2, meaning the physical address component is followed immediately by a 2-byte sap component within the DLSAP address. o The broadcast address value is Ethernet/IEEE broadcast address (FF:FF:FF:FF:FF:FF). CONFIGURATION
The e1000g driver does not support the use of shared RAM on the board. To configure the e1000g driver: o Use prtconf -v | grep pci8086,[12][01][01][0-F] to obtain the instance number of the driver. o Use ifconfig e1000ginstance plumb to plumb the controller. o Use ifconfig e1000ginstance inet ip_address netmask + broadcast + -trailers up to bring up the interface. o Use the ping(1M) command to contact interfaces on the network to verify that the configuration is operational. Configuration File Options The following e1000g.conf configuration options are supported: AutoNegAdvertised This is a bitmap for the speeds advertised during autonegotiation. Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 Setting| N/A | N/A | 1000F | N/A | 100F | 100H | 10F | 10H The adapter only autonegotiates to a speed which is advertised. For example: AutoNegAdvertised = 4 causes an adapter to only advertise autonegotiation at 100 Mbps, full duplex. No other link speeds is accepted or given during autonegotiation. AutoNegAdvertised=47 adver- tises all speeds available, This is the same as using the default setting of 0. 0-255 Allowed values 0 Default DmaFairness When enabled, direct memory access by the driver is fair, meaning transmit and receive have equal priority. When disabled, receive takes priority over transmit. The allowed values are: 0 Disable. 1 Enable.This is the default. FlowControl Flow control utilizes ethernet XON and unicast and multicast XOFF packets to allow ethernet equipment to slow down the stream of data between two ethernet devices. The allowed values are: 0 Disable. Packets can get dropped in high throughput situations, leading to reduced network performance. 1 Receive only. 2 Transmit only. 3 Receive and transmit. This is the default. 4 Use adapter's EEPROM-programmed factory default setting. ForceSpeedDuplex Specify the speed and duplex mode for each instance. If you set ForceSpeedDuplex=7,4, the e1000g0 is set to autonegotiate and e1000g1 is set to 100 Mbps, full duplex. Fiber optic ethernet adapters ignore this setting. The allowed values are: 1 10 Megabits per second, Half Duplex. 2 10 Megabits per second, Full Duplex. 3 100 Megabits per second, Half Duplex. 4 100 Megabits per second, Full Duplex. 7 Autonegotiate speed and duplex.This is the default. MaxFrags Maximum number of STREAMS memory buffer fragmentation of incoming or outgoing packets. This value can effect the performance and memory requirements of the driver. 2-8 Allowed values 8 Default MaxFrameSize Upper limit on the maximum MTU size the driver allows. All Intel gigabit adapters, except the 82542-based Intel PRO/1000 adapter, allow the configuration of jumbo frames. The maximum MTU accepted by the MAC is 16128. Use ifconfig(1M) To configure jumbo frames. ifconfig with the adapter instance and the mtu argument (ifconfig e1000g0 mtu 16128) configures adapter e1000g0 for the maximum allowable jumbo frame size. The allowed values are: 0 Standard ethernet frames with a MTU equal to 1500. This is the default. 1 Jumbo frames with a maximum MTU of 4096. 2 Jumbo frames with a maximum MTU of 8192. 3 Jumbo frames with a maximum MTU of 16384. MaxFreeListBuf Maximum number or pre-allocated buffers the driver can use for received data. Pre-allocating buffers can help with receive performance. It also increases the memory requirements of the driver. 0-4096 Allowed values 256 Default MaxNumReceivePackets Maximum number of receive packets that the driver can handle for each interrupt. CPU utilization can be lowered through more effecient interrupt management. If this value is increased, the time needed by the CPU to process the individual interrupts can increase and nullify any performance gains realized by handling less interrupts. 16-1024 Allowed values 32 Default MWIEnable Architecture servers based on the Intel 450NX chipset are known to have problems with Memory Write and Invalidate. Disable this fea- ture only for this chipset. The allowed values are: 0 Disable. This is the default. 1 Enable. NumRxDescriptors Number of receive descriptors available to the driver. More receive descriptors increase receive performance at the penalty of decreased available memory. If you set this value to 256 on Solaris 7 when multiple Intel Gigabit NICs are configured, it causes memory allocation problems. It is recommended that you set this value lower when using multiple Intel Gigabit adapters on Solaris 7. 80-256 Allowed values 256 Default NumTxDescriptors Number of transmit descriptors available to the driver. More transmit descriptors increase transmit performance at the penalty of decreased available memory. If you set this value to 256 on Solaris 7 when multiple Intel Gigabit NICs are configured, it causes memory allocation problems. It is recommended that you set this value lower when using multiple Intel Gigabit adapters on Solaris 7. 80-256 Allowed values 256 Default ProfileJumboTraffic If you need to collect statistics on jumbo frame usage, enabling this parameter causes the e1000g driver to keep a count of the number of jumbo frames transmitted and received. Use the kstat command to view jumbo frame utilization statistics. See kstat(1M) The allowed values are: 0 Disable. This is the default. 1 Enable. TbiCompatibilityEnable=1; You must enable this feature on Intel 82543CG-based copper adapters to operate correctly with TBI mode ethernet hardware. The allowed values are: 0 Disable. 1 Enable. This is the default. TxInterruptDelay Amount of time (in 1.024 micro second units) between the time transmit data is queued in a transmit descriptor and the transmit inter- rupt is sent. 0-65535 Allowed values. A value of 0 completely disables any transmit interrupt delay. Some delay is benefical in reducing CPU uti- lization by the driver. 300 Default. dev/e1000g Character special device. /kernel/drv/e1000g.conf 32-bit driver configuration file. /kernel/drv/sparcv9/e1000g SPARC e1000g driver binary. /kernel/drv/amd64/e1000g 64-bit x86 e1000g driver binary. /kernel/drv/e1000g 32-bit x86 e1000g driver binary. sys/stropts.h stropts network header file. sys/ethernet.h Ethernet network header file. sys/dlpi.h dlpi network header file. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |SPARC, X86 | +-----------------------------+-----------------------------+ dladm(1M), ifconfig(1M), kstat(1M), ping(1M), attributes(5), dlpi(7P) Intel PRO/1000 Gigabit Adapter Driver Installation Notes for Solaris Writing Device Drivers STREAMS Programming Guide Network Interfaces Guide 23 Aug 2005 e1000g(7D)
All times are GMT -4. The time now is 03:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy