Input file:
x A 10
y A 10
z A 10
x B 10
y B 12
z B 10
x C 0
y C 0
Required output:
x B 10
y B 12
z B 10
i.e. printing only that section (based on 2nd field) for which third field($3) is not equal for all the lines for that 2nd field. Please help (12 Replies)
I have the following line to text:
ExecuteQueue Name=default ThreadCount=60
I want to write a sed or awk function that eliminates everything before "ThreadCount" without taking into account what is actually in front of ThreadCount. Meaning there may be text in front of "ThreadCount" other... (6 Replies)
Hi Everyone,
a.txt
a b c 1 e e e e e
a b c 2 e e e e e
the output is
a b c 1 e e e e e
a 00b c 2 e e e e e
when 4th field = '2', then add '00' in the front of 2nd field value.
Thanks (9 Replies)
I am attempting to replace positions 44-46 with YYY if positions 48-50 = XXX.
awk -F "" '{if (substr($0,48,3)=="XXX") $44="YYY"}1' OFS="" $filename > $tempfile
But this is not working, 44-46 is still spaces in my tempfile instead of YYY. Any suggestions would be greatly appreciated. (9 Replies)
Hi
Does anyone know how to set any character as the field separator with awk/nawk on a solaris 10 box. I have tried using /./ regex but this doesnt work either and im out of ideas.
thanks (7 Replies)
Using awk, print all the lines where field 8 is equal to x
I really did try, but this awk thing is really hard to figure out.
file1.txt"Georgia","Atlanta","2011-11-02","x","","","",""
"California","Los Angeles","2011-11-03","x","","","",""... (2 Replies)
how to use "awk" to print any record has pattern not equal ? for example my file has 5 records & I need to get all lines which $1=10 or 20 , $2=10 or 20 and $3 greater than "130302" as it shown :
10 20 1303252348212B030
20 10 1303242348212B030
40 34 1303252348212B030
10 20 ... (14 Replies)
Discussion started by: arm
14 Replies
LEARN ABOUT NETBSD
cardbus
CARDBUS(4) BSD Kernel Interfaces Manual CARDBUS(4)NAME
cardbus, cardslot, cbb -- CardBus driver
SYNOPSIS
cbb* at pci? dev? function ?
cardslot* at cbb?
cardbus* at cardslot?
pcmcia* at cardslot?
XX* at cardbus? function ?
DESCRIPTION
NetBSD provides machine-independent bus support and drivers for CardBus devices.
The cbb device represents the CardBus controller. Each controller has a number of slots, represented by the cardslot devices. A slot can
have either a CardBus card or a PCMCIA card, which are attached with the cardbus or pcmcia devices, respectively.
SUPPORTED DEVICES
NetBSD includes the following machine-independent CardBus drivers, sorted by function and driver name:
Network interfaces
ath Atheros 5210/5211/5212 802.11
atw ADMtek ADM8211 (802.11)
ex 3Com 3c575TX and 3c575BTX
fxp Intel i8255x
ral Ralink Technology RT25x0 (802.11)
rtk Realtek 8129/8139
rtw Realtek 8180L (802.11)
tlp DECchip 21143
Serial interfaces
com Modems and serial cards
SCSI controllers
adv AdvanSys 1200[A,B], 9xx[U,UA]
ahc Adaptec ADP-1480
njs Workbit NinjaSCSI-32
USB controllers
ehci Enhanced Host Controller (2.0)
ohci Open Host Controller
uhci Universal Host Controller
IEEE1394 controllers
fwohci OHCI controller
Disk and tape controllers
siisata Silicon Image SATA-II controllers.
DIAGNOSTICS
cbb devices may not be properly handled by the system BIOS on i386-family systems. If, on an i386-family system, the cbb driver reports
cbb0: NOT USED because of unconfigured interrupt
then enabling
options PCI_ADDR_FIXUP
options PCI_BUS_FIXUP
options PCI_INTR_FIXUP
or (if ACPI is in use)
options PCI_INTR_FIXUP_DISABLED
in the kernel configuration might be of use.
SEE ALSO adv(4), ahc(4), ath(4), atw(4), com(4), ehci(4), ex(4), fxp(4), njs(4), ohci(4), options(4), pci(4), pcmcia(4), ral(4), rtk(4), rtw(4),
siisata(4), tlp(4), uhci(4)HISTORY
The cardbus driver appeared in NetBSD 1.5.
BUGS
Memory space conflicts
NetBSD maps memory on Cardbus and PCMCIA cards in order to access the cards (including reading CIS tuples on PCMCIA cards) and access the
devices using the RBUS abstraction. When the mapping does not work, PCMCIA cards are typically ignored on insert, and Cardbus cards are rec-
ognized but nonfunctional. On i386, the kernel has a heuristic to choose a memory address for mapping, defaulting to 1 GB, but choosing 0.5
GB on machines with less than 192 MB RAM and 2 GB on machines with more than 1 GB of RAM. The intent is to use an address that is larger
than available RAM, but low enough to work; some systems seem to have trouble with addresses requiring more than 20 address lines. On i386,
the following kernel configuration line disables the heuristics and forces Cardbus memory space to be mapped at 512M; this value makes Card-
bus support (including PCMCIA attachment under a cbb) work on some notebook models, including the IBM Thinkpad 600E (2645-4AU) and the Compaq
ARMADA M700:
options RBUS_MIN_START="0x20000000"
BSD July 19, 2009 BSD