05-29-2013
How are 10 and 6000 related? Meaning, what is the logic that should manipulate 10, so that output is 6000?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi folks,
I need to search and replace specific text in a file and replace it. I have a text file that does not have any newlines or carriage returns. All newlines have been removed. Here is what I need to do.
Find the exact string “DH” (quotes included) and replace it with \n”DH” (basically... (6 Replies)
Discussion started by: bridgeje
6 Replies
2. Shell Programming and Scripting
Plzzzz, tell me some script about this...
What does this mean ?
sed '/^ */s///'
sed '/^/s// /'
and why it's diferent ???
sed '/ */s// /g' and sed 's/ */ /g'. It's all the same ???
Thanks you very much (2 Replies)
Discussion started by: mle
2 Replies
3. UNIX for Dummies Questions & Answers
Hello Folks,
Anyone know how I can replace this line in file.xml
<oacore_nprocs oa_var="s_oacore_nprocs">8</oacore_nprocs>
with this line
<oacore_nprocs oa_var="s_oacore_nprocs">1</oacore_nprocs>
using sed or awk ?
Thanks for your time.
Cheers,
Dave (7 Replies)
Discussion started by: d__browne
7 Replies
4. UNIX for Dummies Questions & Answers
Is there a way to use the sed command to
1) search a specified pattern
2) in the line where that pattern is found, replace from character N to character N+4 with a new 4-character string.
Thks in advance! (5 Replies)
Discussion started by: mvalonso
5 Replies
5. Shell Programming and Scripting
hi,
im new for sed, anyone can help me to these in sed command
my output file.txt
"aaa",a1,bbb
"ddd",a1,ccc
"eee",a1,www
need to change a1, to "a1","
output i need
"aaa","a1","bbb
"ddd","a1","ccc
"eee","a1","www
thanks in advance
fsp (2 Replies)
Discussion started by: fspalero
2 Replies
6. UNIX for Dummies Questions & Answers
Hello -
I have a very large file in which a certain numbers are repeated. I find that using vi to edit the entire file is useless.
How should i use sed to find a replace such as this text:
To replace: 145.D25.D558
With: 215.22.45.DW
I tried this command:
sed... (4 Replies)
Discussion started by: DallasT
4 Replies
7. Shell Programming and Scripting
Hi everyone,
basically I am been cleaning data by using simple sed commands
So what i have below has been working for me.
sed 's/="//g' trade.csv > tradeb.csv
sed 's/"//g' tradeb.csv > trade2.csv
but now i don't want to remove all the quotes just the ones if i encounter this ... (1 Reply)
Discussion started by: raz0r
1 Replies
8. UNIX for Dummies Questions & Answers
Hi All
I have a simple text file and I want to be able to replace any alpha character and comma combination with any other symbol of my choice
here is the text file I want to replace:
pear
apple
ban,ana
grape
",g1234,"
te,st1
here is how it should look afterwards:
pear... (4 Replies)
Discussion started by: greg_b
4 Replies
9. Shell Programming and Scripting
Hi guys, thanks for accepting me in your forum .. I am trying to clean some hacked PHP files using SSH .. I am using this command:
find . -type f -print0 | xargs -0 sed -i '/god_mod/d'
<?php ... (3 Replies)
Discussion started by: wisam74us
3 Replies
10. Shell Programming and Scripting
Hi,
Basically , i search for a string ( from variable) in a input file , if line found then search a string called "STRING" and replace with text (from another variable ). I cant avoid # delimiter due to esc sequences.
#!/bin/bash
LINE="source/path"
REPLACE="TEXT/TO/REPLACE"
sed -e... (9 Replies)
Discussion started by: greet_sed
9 Replies
LEARN ABOUT DEBIAN
if_iwn
IWN(4) BSD Kernel Interfaces Manual IWN(4)
NAME
iwn -- Intel Wireless WiFi Link 4965/1000/5000/5150/5300/6000/6050 IEEE 802.11n driver
SYNOPSIS
To compile this driver into the kernel, include the following lines in your kernel configuration file:
device iwn
device pci
device wlan
device firmware
You also need to select a firmware for your device. Choose one from:
device iwn4965fw
device iwn1000fw
device iwn5000fw
device iwn5150fw
device iwn6000fw
device iwn6050fw
Or you can use
device iwnfw
to include them all.
Alternatively, to load the driver as a module at boot time, place the following lines in loader.conf(5):
if_iwn_load="YES"
iwn4965fw_load="YES"
iwn1000fw_load="YES"
iwn5000fw_load="YES"
iwn5150fw_load="YES"
iwn6000fw_load="YES"
iwn6050fw_load="YES"
DESCRIPTION
The iwn driver provides support for Intel Wireless WiFi Link 4965, 1000, 5000 and 6000 series of PCI-Express network adapters. iwn supports
station, adhoc, and monitor mode operation. Only one virtual interface may be configured at any time. For more information on configuring
this device, see ifconfig(8).
This driver requires the firmware built with the iwnfw module to work.
EXAMPLES
Join an existing BSS network (i.e., connect to an access point):
ifconfig wlan create wlandev iwn0 inet 192.168.0.20
netmask 0xffffff00
Join a specific BSS network with network name ``my_net'':
ifconfig wlan create wlandev iwn0 ssid my_net up
Join a specific BSS network with 64-bit WEP encryption:
ifconfig wlan create wlandev iwn0 ssid my_net
wepmode on wepkey 0x1234567890 weptxkey 1 up
Join a specific BSS network with 128-bit WEP encryption:
ifconfig wlan create wlandev iwn0 wlanmode adhoc ssid my_net
wepmode on wepkey 0x01020304050607080910111213 weptxkey 1
DIAGNOSTICS
iwn%d: device timeout The driver will reset the hardware. This should not happen.
iwn%d: firmware error The onboard microcontroller crashed for some reason. The driver will reset the hardware. This should not happen.
iwn%d: timeout waiting for firmware initialization to complete The onboard microcontroller failed to initialize in time. This should not
happen.
iwn%d: could not load firmware image '%s' The driver failed to load the firmware image using the firmware(9) subsystem. Verify the iwnfw(4)
firmware module is present.
iwn%d: could not load boot firmware An attempt to upload the boot firmware image to the onboard microcontroller failed. This should not
happen.
iwn%d: could not load microcode An attempt to upload the microcode image to the onboard microcontroller failed. This should not happen.
iwn%d: could not load main firmware An attempt to upload the main firmware image to the onboard microcontroller failed. This should not
happen.
SEE ALSO
iwnfw(4), pci(4), wlan(4), wlan_ccmp(4), wlan_tkip(4), wlan_wep(4), ifconfig(8), wpa_supplicant(8)
AUTHORS
The original iwn driver was written by Damien Bergamini <damien.bergamini@free.fr>
BSD
July 20, 2010 BSD