but there is one small problem, in the word.dat file I have some words like:
you see that some of them have "/" in the middle, so the problem is the output sed file like this would not work, because it has extra "/"
So what structure you suggest for the sed file:
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT OPENSOLARIS
pcwl
pcwl(7D) Devices pcwl(7D)NAME
pcwl - Lucent/PrismII 802.11b wireless NIC driver
DESCRIPTION
The pcwl 802.11b wireless NIC driver is a multi- threaded, loadable, clonable, GLDv3-based STREAMS driver. It supports the pccard and
PCI/MiniPCI cards with the Lucent and PrismII 802.11b chipsets on x86 and SPARC.
DRIVER CONFIGURATION
The pcwl driver supports 802.11b data rates of 1, 2, 5.5 and 11 (Mbits/sec). The default is 11.
The pcwl driver supports BSS networks (also known as "ap" or "infrastructure" networks) and IBSS (or "ad-hoc") networks. For authentication
type, the pcwl driver supports the "open" (or "open-system") mode and the "shared-key" mode. For encryption type, only WEP is currently
supported. You perform configuration and administration tasks using the dladm(1M) and wificonfig(1M) utilities.
FILES
/dev/pcwl* Special character device.
/kernel/drv/pcwl 32-bit ELF kernel module (x86).
/kernel/drv/amd64/pcwl 64-bit ELF kernel module (x86).
/kernel/drv/sparcv9/pcwl 64-bit ELF kernel module (SPARC).
ATTRIBUTES
See attributes(5) for a description of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SPARC, x86 |
+-----------------------------+-----------------------------+
SEE ALSO dladm(1M), wificonfig(1M), attributes(5), gld(7D)
802.11b Standard for Wireless Local Area Networks (WLANs) - IEEE
SunOS 5.11 24 Jan 2007 pcwl(7D)