05-20-2010
Actually it looks somewhat like homework, but not enough to warrant moderation.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all.
Sorry, I know this question is similar to many others, but I just can seem to put together exactly what I need.
My file is tab delimitted and contains approximately 1 million rows. I would like to send lines 1,4,& 7 to a file. Lines 2, 5, & 8 to a second file. Lines 3, 6, & 9 to... (11 Replies)
Discussion started by: shankster
11 Replies
2. UNIX for Dummies Questions & Answers
Hello Everyone.
I am trying to display contains of a file from a specific line to a specific line(let say, from line number 3 to line number 5). For this I got the shell script as shown below:
if ; then
if ; then
tail +$1 $3 | head -n $2
else
... (5 Replies)
Discussion started by: grc
5 Replies
3. Shell Programming and Scripting
Hi,
I search all forum, but I can not find solutions of my problem :(
I have multiple files (5000 files), inside there is this data :
FILE 1:
1195.921 -898.995 0.750312E-02-0.497526E-02 0.195382E-05 0.609417E-05
-2021.287 1305.479-0.819754E-02 0.107572E-01 0.313018E-05 0.885066E-05
... (15 Replies)
Discussion started by: guns
15 Replies
4. Shell Programming and Scripting
I have a file that contains 87 lines, each with a set of coordinates (x & y). This file looks like:
1 200.3 -0.3
2 201.7 -0.32
...
87 200.2 -0.314
I have another file which contains data that was taken at certain of these 87 positions. i.e.:
37 125
42 175
86 142
where the first... (1 Reply)
Discussion started by: jackiev
1 Replies
5. Shell Programming and Scripting
Hi I have a file with over a million lines (rows) and I want to split everything from 500,000 to a million into another file (to make the file smaller). Is there a simple command for this?
Thank you
Phil (4 Replies)
Discussion started by: phil_heath
4 Replies
6. Shell Programming and Scripting
Hi
i have requirement like below
M <form_name> sdasadasdMklkM
D ......
D .....
M form_name> sdasadasdMklkM
D ......
D .....
D ......
D .....
M form_name> sdasadasdMklkM
D ......
M form_name> sdasadasdMklkM
i want split file based on line number by finding... (10 Replies)
Discussion started by: bhaskar v
10 Replies
7. Shell Programming and Scripting
Hi,
Need to sort file based on the number of delimeters in the lines.
cat testfile
/home/oracle/testdb
/home
/home/oracle/testdb/newdb
/home/oracle
Here delimeter is "/"
expected Output:
/home/oracle/testdb/newdb
/home/oracle/testdb
/home/oracle
/home (3 Replies)
Discussion started by: Sumanthsv
3 Replies
8. Shell Programming and Scripting
Hi friends, here is my problem.
I have three files like this..
cat file1.txt
=======
unix is best
unix is best
linux is best
unix is best
linux is best
linux is best
unix is best
unix is best
cat file2.txt
========
Windows performs better
Mac OS performs better
Windows... (4 Replies)
Discussion started by: Jagadeesh Kumar
4 Replies
9. Shell Programming and Scripting
Dear Experts
my scenario is as follows...
I have one source folder "Source" and 2 target folders "Target_123456" & "Target_789101". I have 2 series of files. 123456 series and 789101 series. Each series has got 3 types of fiels "Debit", "Refund", "Claims".
All files are getting... (17 Replies)
Discussion started by: phani333
17 Replies
ET(4) BSD Kernel Interfaces Manual ET(4)
NAME
et -- Agere ET1310 10/100/Gigabit Ethernet driver
SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file:
device miibus
device et
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):
if_et_load="YES"
DESCRIPTION
The et driver supports PCI Express Ethernet adapters based on the Agere ET1310 chip.
The et driver supports the following media types:
autoselect Enable autoselection of the media types and options. The user can manually override the autoselected mode by adding media
options to the /etc/rc.conf file.
10baseT/UTP Set 10Mbps operation. The mediaopt option can also be used to select either full-duplex or half-duplex modes.
100baseTX Set 100Mbps (Fast Ethernet) operation. The mediaopt option can also be used to select either full-duplex or half-duplex modes.
1000baseT Set 1000Mbps (Gigabit Ethernet) operation. The mediaopt option can only be set to full-duplex mode.
The et driver supports the following media options:
full-duplex Force full-duplex operation.
half-duplex Force half-duplex operation.
Note that the 1000baseT media type is only available if it is supported by the adapter. For more information on configuring this device, see
ifconfig(8).
TUNABLES
hw.et.rx_intr_npkts This value controls how many packets should be received before a receive interrupt is generated. The default value is
32. It is recommended to set this value above 38 to prevent the host from being livelocked under a high degree of
stress.
hw.et.rx_intr_delay This value delays the generation of receive interrupts in units of ~4 microseconds. It is used together with
hw.et.rx_intr_npkts to achieve RX interrupt moderation. The default value is 20.
hw.et.tx_intr_nsegs This value controls how many segments (not packets) should be transmitted before a transmit interrupt is generated. The
default value is 126. It is recommended to set this value below 280 to prevent the TX ring from underflowing.
hw.et.timer This value controls how often a timer interrupt should be generated. It is used together with hw.et.tx_intr_nsegs to
achieve TX interrupt moderation. The default value is 1000000000 (nanoseconds).
SEE ALSO
arp(4), miibus(4), netintro(4), ng_ether(4), vlan(4), ifconfig(8)
HISTORY
The et device driver first appeared in DragonFly 1.11. The first FreeBSD release to include it was FreeBSD 8.0.
AUTHORS
The et driver was written by Sepherosa Ziehau <sepherosa@gmail.com> for DragonFly. It was ported to FreeBSD by Xin LI <delphij@FreeBSD.org>.
BSD
July 14, 2008 BSD