Sponsored Content
Full Discussion: sed inside sed
Top Forums Shell Programming and Scripting sed inside sed Post 302576686 by vgersh99 on Friday 25th of November 2011 03:03:07 PM
Old 11-25-2011
I don't quite follow the logic...
Why are you creating a sed file with awk/sed, while you can do the actual substitution with awk directly?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Using variable inside 'sed'

Dear all, How can I amend the following command to use variable inside 'sed' ? str=`sed -e 's/orig_string/${var}/g' ${sourcefile}` Thanks, Rocky (3 Replies)
Discussion started by: Rock
3 Replies

2. UNIX for Dummies Questions & Answers

SED inside while loop

Hi, im having problem creating a loop using my code: aside from the fact that the 1st variable (VAR) does not increment, it loops more than the expected output. for sample purposes, test csv contains 3 lines. #get number of lines in the file lines=$( wc -l < test.csv ) ... (5 Replies)
Discussion started by: paoie
5 Replies

3. Shell Programming and Scripting

Need help using sed inside the loop.

Hi, i have written a script. it collects data based on the sql queries executed by it. i have multiple output files. after the output file is made i need to do some cosmetic changes in the files and then store them. i am unable to use sed conditions inside the loop. see below code for... (3 Replies)
Discussion started by: dazdseg
3 Replies

4. 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

5. Shell Programming and Scripting

Using commands inside sed substitution

Dear Friends, Please let me know how to use the date command inside the substitution flag replacement string. echo "01 Jan 2003:11:00:06 +0100" | sed 's/\(.*\)/`date -d \1 "+%Y%m%d%H%M%S"`/' I want to supply \1 string to Here mention below as part of replacement string, date -d <Here>... (5 Replies)
Discussion started by: tamil.pamaran
5 Replies

6. Shell Programming and Scripting

Variable inside sed

Problem: Need to read contents from a file and use that value inside sed as avariable. sample code below. THe below code replaces contents inside file123 for matched string with "$x" value only. but we want the value of x which is read from TextFile.txt to go in there. cat TextFile.txt|while... (3 Replies)
Discussion started by: cvsanthosh
3 Replies

7. UNIX for Dummies Questions & Answers

sed inside awk

What I want to do is delete everything upto the last underscore (_) in column 2. awk '{ $2=$(echo $2 | sed 's/.*_//'); print $0}' Sed works fine if I echo the string into it, this doesnt work inside awk. What am I doing wrong? Similarly, how do I store the substring starting with a... (4 Replies)
Discussion started by: senhia83
4 Replies

8. UNIX for Dummies Questions & Answers

Array inside sed

Hi guys Let me at first describe the whole thing that I'm trying to do. Lets say I have 100 files like the following one. Ow 1230 16.000000 -0.834000 16.083957 1.751652398 -17.20094528 -4.450623277 Hw 1231 ... (6 Replies)
Discussion started by: saleheen
6 Replies

9. Shell Programming and Scripting

Use of sed inside perl

$string="test.binary.value"; $toggle="test.binary.value=true"; host=test.server.com my $returnCode = system ( "ssh $host 'cp -p /tmp/testfile /tmp/testfile.bkup; sed -i 's/\$string.*/\$toggle/g' /tmp/testfile'" ); cat testfile test.binary.value=false Scenario: I am trying to... (3 Replies)
Discussion started by: Tuxidow
3 Replies

10. Shell Programming and Scripting

Using sed inside shellscript

Hi All, I am trying to use sed command inside a shell script. The same sed command is working on command line, however its not working while using inside a shell script. From various sources i found , it could be done by using -i option, but its not working as well. sed... (11 Replies)
Discussion started by: gotamp
11 Replies
MWL(4)							   BSD Kernel Interfaces Manual 						    MWL(4)

NAME
mwl -- Marvell 88W8363 IEEE 802.11n wireless network driver SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file: device mwl device mwlfw device wlan device firmware Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): if_mwl_load="YES" DESCRIPTION
The mwl driver provides support for IEEE 802.11n wireless network adapters based on Marvell 88W8363 parts. PCI and/or CardBus interfaces are supported. This driver requires the firmware built with the mwlfw module to work. Normally this module is loaded on demand by the driver but it may also be compiled into the kernel. Supported features include 802.11n, power management, BSS, MBSS, and host-based access point operation modes. All host/device interaction is via DMA. The mwl driver encapsulates IP and ARP traffic as 802.11 frames, however it can receive either 802.11 or 802.3 frames. Devices support 802.11n, 802.11a, 802.11g, and 802.11b operation with transmit speeds appropriate to each. The actual transmit speed used is dependent on signal quality and the ``rate control'' algorithm implemented in the firmware. All chips have hardware support for WEP, AES-CCM, TKIP, and Michael cryptographic operations. The driver supports station, hostap, mesh, and wds mode operation. Multiple hostap virtual interfaces may be configured for simultaneous use. When multiple interfaces are configured each may have a separate mac address that is formed by setting the U/L bits in the mac address assigned to the underlying device. Any number of wds virtual interfaces may be configured together with hostap interfaces. Multiple station interfaces may be operated together with hostap interfaces to construct a wireless repeater device. For more information on configuring this device, see ifconfig(8). Devices supported by the mwl driver come in either Cardbus or mini-PCI packages. Wireless cards in Cardbus slots may be inserted and ejected on the fly. EXAMPLES
Join an existing BSS network (ie: connect to an access point): ifconfig wlan create wlandev mwl0 inet 192.168.0.20 netmask 0xffffff00" Join a specific BSS network with network name ``my_net'': ifconfig wlan create wlandev mwl0 inet 192.168.0.20 netmask 0xffffff00 ssid my_net" Join a specific BSS network with WEP encryption: ifconfig wlan0 create wlandev mwl0 ifconfig wlan0 inet 192.168.0.20 netmask 0xffffff00 ssid my_net wepmode on wepkey 0x8736639624 Create an 802.11g host-based access point: ifconfig wlan0 create wlandev mwl0 wlanmode hostap ifconfig wlan0 inet 192.168.0.10 netmask 0xffffff00 ssid my_ap mode 11g Create an 802.11a mesh station: ifconfig wlan0 create wlandev mwl0 wlanmode mesh ifconfig wlan0 meshid my_mesh mode 11a inet 192.168.0.10/24 Create two virtual 802.11a host-based access points, one with with WEP enabled and one with no security, and bridge them to the fxp0 (wired) device: ifconfig wlan0 create wlandev mwl0 wlanmode hostap ssid paying-customers wepmode on wepkey 0x1234567890 mode 11a up ifconfig wlan1 create wlandev mwl0 wlanmode hostap bssid ssid freeloaders up ifconfig bridge0 create addm wlan0 addm wlan1 addm fxp0 up DIAGNOSTICS
mwl%d: unable to setup builtin firmware There was a problem downloading and/or setting up the firmware. The device is not usable. mwl%d: failed to setup descriptors: %d There was a problem setting up the DMA data structures. This typically is caused by not being able to allocate contiguous memory. mwl%d: transmit timeout A frame dispatched to the hardware for transmission did not complete in time. This should not happen. mwl%d: device not present A cardbus device was ejected while active; the request to the firmware was not completed. SEE ALSO
cardbus(4), intro(4), mwlfw(4), pci(4), wlan(4), wlan_ccmp(4), wlan_tkip(4), wlan_wep(4), wlan_xauth(4), hostapd(8), ifconfig(8), wpa_supplicant(8) HISTORY
The mwl device driver first appeared in FreeBSD 8.0. BUGS
The driver does not support power-save operation in station mode; consequently power use is suboptimal (e.g. on a laptop). BSD
July 8, 2009 BSD
All times are GMT -4. The time now is 02:55 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy