Hi, i've got an executable shell script, called mysc.sh with this line only:
export DATASIZE=0
i run it from my console (./mysc.sh), and after that in the console i run:
echo $DATASIZE
and nothing prints
what could be the problem???
thanks!! (2 Replies)
Hello,
I've been struggling with this for some time but can't find a way to do it and I haven't found any other similar thread.
I'd like to get the 'fields' in a line from a file into variables in just one command.
The file contains data with the next structure:... (4 Replies)
The text file has one single row and looks like this
Q1 P1 2006
I have to pick up this values from a shell script into three different variables,
say quarter, period and year from the above text file. Some one know's how to do this? I went through 'sed', dint really know how to... (3 Replies)
Hi,
I was trying to do something where I would be able to export one local variable in a telnet subshell to its parent shell.
I found something like this over here, but couldnt exactly understand it :(.
I am referring to this part actually:
#! /usr/bin/ksh
exec 4>&1
tail -5 >&4 |&
exec... (4 Replies)
Hi,
I want to read the variables and the values from the txt file and compare these values with the ones computed by script.
for ex:
say var.txt contains the variable names and their values:
one 1
two 2
three 3
The value of variables "one" "two" and "three" will be computed in the script... (3 Replies)
Hi,
I have a file like the following...
CUST=
DIR=
NULIST=
name=philps_123
How can i add values to each of these unassigned variables using a shell script?
say for eg: i have values for CUST as onida, dir as /dir/onida, NULIST as /tmp/onida_files. How can i add these values to... (11 Replies)
Hi,
I have a config file that has blank, commented lines. I need to escape commented lines, blank lines, parse the remaining lines and store them in variables or array.
the config file contains the following lines.
# config file
# Define Oracle User
ORA_USER=abcde
ORA_PASS=xyzabc... (8 Replies)
Hi! This might be a simple thing, but I'm struggling to assign values to variables from the file.
I've the following values stored in the file.. It consists of only two rows..
10
20
I want to assign the first row value to variable "n1" and the second row value to variable "n2"..
That is ... (3 Replies)
Hi,
I need to assign values from a lines in a file into variables in unix, i am using Korn shell.
I tried the below script from posts but i am unable to fetch every value in a variable.
#! /usr/bin/ksh
#for file in test.txt; do
IFS=$'\|'
I=1
while read -a val
do
echo... (15 Replies)
I have a file containing multiple values, some of them are pipe separated which are to be read as separate values and some of them are single value all are these need to store in variables.
I need to read this file which is an input to my script
Config.txt
file name, first path, second... (7 Replies)
Discussion started by: ketanraut
7 Replies
LEARN ABOUT REDHAT
wireless
WIRELESS(7) Linux Programmer's Manual WIRELESS(7)NAME
wireless - Wireless Tools and Wireless Extensions
SYNOPSIS
iwconfig
iwpriv -a
DESCRIPTION
The Wireless Extensions is an API allowing you manipulate Wireless LAN networking interfaces. It is composed of a variety of tools and
configuration files. It is documented in more details in the Linux Wireless LAN Howto.
The Wireless Tools are use to change configuration on the fly, to get statistics and diagnose those interfaces. They are described in their
own man page (see below).
Wireless configuration is specific to each Linux distribution. This man page will contain in the future the configuration procedure for a
few common distributions (when I get the necessary info from them). For the time being, check the various files included with the Wireless
Tools package.
DEBIAN 3.0
Debian 3.0 (and later) has integrated wireless configuration in their network scripts.
File : /etc/network/interfaces
Form : wireless_<function> <value>
wireless_essid Home
wireless_mode ad_hoc
See also :
/etc/network/if-pre-up.d/wireless-tool
/usr/share/doc/wireless.##/README.Debian
ORIGINAL PCMCIA SCRIPTS
If you are using the original configuration scripts from the Pcmcia package, you can use this method.
File : /etc/pcmcia/wireless.opts
Form : *,*,*,*)
ESSID="MY_ESSID"
MODE="Managed"
;;
See also :
/etc/pcmcia/wireless
File PCMCIA.txt part of Wireless Tools package
AUTHOR
Jean Tourrilhes - jt@hpl.hp.com
http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/
SEE ALSO iwconfig(8), iwlist(8), iwspy(8), iwpriv(8), iwevent(8).
net-tools 12 July 2002 WIRELESS(7)