Probably a simple one.
Basically I am retrieving a number from a file - setting a variable against it and then incrementing this by 1 and using this as an entry number in a log file for messages. I need the variable to re-evalute itself each time I call it so I get the latest number in the file -... (1 Reply)
I have variables:
FOO="Text"
BAR="FOO"
I'd like to be able to evaluate the variable named as the value of $BAR.
echo $FOO
Text
echo $BAR
FOO
This is what I'd like to do:
echo ${$BAR} (this won't work)
Text (3 Replies)
Hello,
I have this:
#!/usr/bin/ksh
V1=ABC
str="hello 123;${V1}"
eval "echo $str"
i get
hello 123
/script.sh ABC not found
However eval works if $str variable doesn't contain a semicolumn (eg if str="hello 123~${v1}"
running the eval statement above would produce (2 Replies)
hi,
i'm reading a file "LISTE_FILE" like :
#
$LOGCOM * 5
$PRCCOM * 10
and i want to use the file with "while" and having the fields splitted into new variables for treatment :
while read LINE
do
# Ignorer les commentaires un # en premiere position
if
then... (3 Replies)
How to evaluate the value of a variable ?
For example:
a=var
$a=value !!!error happens!!!
I want to evaluate var=value, how to realize it?
Thanks!
---------- Post updated at 03:37 AM ---------- Previous update was at 02:22 AM ----------
I am using linux bash.
a=var
$a=value... (4 Replies)
I'm writing a script to merge the xkcd webcomic tiles for comic 1110. So far, I have written about 100 lines, and instead of doing each quadrant of the image separately, I've decided to use functions to do this, repeating for every quadrant and using variables for each quadrant to make the function... (9 Replies)
Hi
i tried to execute a below script but it is giving execution error
rec=ABC,1234,55.00
Colno=2
coldel=,
fd='"'$coldel'"'
fprint="'"'{print$'$colno'}'"'"
colsyn=`echo "echo "$rec "| awk -F"$fd $fprint`
echo column syntax is $colsyn
colrec=`colsyn`
echo column is $colrec (5 Replies)
Hi,
I am trying to set a variable that has time the format desired. And my intention is to echo variable (instead of actual date command) everytime I like to echo date. Please take a look at below code.
$NOW=''
echo $NOW
After 5 minutes
$echo $NOW
Issue here is , I am not... (2 Replies)
I want to create a conditional expression string and pass in an awk script. My script is as below...
comm="\$3 == "hello""
awk -F "^T" -v command="${comm}" ' {
if ( command ) { print "hye" }
}' testBut the statement "if ( command )" always evaluates to true which is not... (5 Replies)
I have to display only those subscribers which are in "unconnected state" and the date is 90 days older than today's date.
Below command is used for this purpose:
cat vfsubscriber_20170817.csv | sed -e 's/^"//' -e '1d' | \
nawk -F '",' '{if ( (substr($11,2,4) == 2017) && ( substr($11,2,8)... (1 Reply)
Discussion started by: dia
1 Replies
LEARN ABOUT DEBIAN
vdetaplib
VDETAPLIB(1) General Commands Manual VDETAPLIB(1)NAME
vdetaplib - Virtual Distributed Ethernet tap emulation library
SYNOPSIS
No synopsis
DESCRIPTION
vdetaplib is a library that emulates tap (tuntap level2 interface, see in kernel sources Documentation/networking/tun.c) and connects tap
virtual interfaces to vde networks.
To use it, the libvdetab.so library must be preloaded (sh, ksh or bash syntax):
export LD_PRELOAD=/usr/lib/vde2/libvdetap.so
(csh, tchs syntax):
setenv LD_PRELOAD /usr/lib/vde2/libvdetap.so
If you want to divert all tap requests to a single vde_switch set the variable VDEALLTAP to the vde socket.
(sh, ksh or bash syntax):
export VDEALLTAP=/tmp/vde.ctl
(csh, tchs syntax):
setenv VDEALLTAP /tmp/vde.ctl
It is possible to set each single interface to different vde_switches by setting the environment variable with the same name of the inter-
face.
(sh, ksh or bash syntax):
export tap0=/tmp/vde.ctl
export tap1=/tmp/myvde.ctl
export ppc=/tmp/ppc.ctl
(csh, tchs syntax):
setenv tap0 /tmp/vde.ctl
setenv tap1 /tmp/myvde.ctl
setenv ppc /tmp/ppc.ctl
It is also possible to specify port, group or mode for a given interface setting environment variables as in the following example.
(sh, ksh or bash syntax):
export tap0_port=5
export tap0_group=vde-net
export tap0_mode=0660
(csh, tchs, syntax):
setenv tap0_port 5
setenv tap0_group vde-net
setenv tap0_mode 0660
The variable to set the specific interface is checked first then VDEALLTAP. VDEALLTAP thus works as a default choice for the vde switch to
be used. If VDEALLTAP is not set and there is no specific environment variable (and for tun -- IFF_TUN interfaces) the kernel provided
interface is used. In this latter case access to /dev/net/tun is required, generally root access.
NOTICE
Virtual Distributed Ethernet is not related in any way with www.vde.com ("Verband der Elektrotechnik, Elektronik und Informationstechnik"
i.e. the German "Association for Electrical, Electronic & Information Technologies").
SEE ALSO vde_switch(1), vdeq(1).
AUTHOR
VDE is a project by Renzo Davoli <renzo@cs.unibo.it>
Virtual Distributed Ethernet December 6, 2006 VDETAPLIB(1)