01-16-2014
it works.. You guys rocks !
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello Everybody,
Does anyone know what the @ symbol means in a csh script, if used with a variable assignment as below
@ line = 1
why not just use....
set line=1
Many thanks
rkap (1 Reply)
Discussion started by: rkap
1 Replies
2. Shell Programming and Scripting
Hi,
I'm writing a KSH script, and at one point, I have to call a new shell and perform some variable assignments.
I noticed that the assignment is not working.
Please see two samples below:
Command 1:
#>ksh "i=2;echo I is $i"
Output:
#>I is
Command 2:
#>ksh <<EOF
> i=2
> echo I... (7 Replies)
Discussion started by: maverick80
7 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am having a problem with assigning a value to a variable. The empname is looked for in the employees file and I am trying to assign it to the jobnum variable in the following statement
jobnum= cat/etc/employees | grep $empname | cut -d : -f 5
It is getting the right answer but it is... (3 Replies)
Discussion started by: rodney08
3 Replies
4. Shell Programming and Scripting
Guys,
Could you please help me out. I need two values in two variables using awk from the o/p of grep.
example:-
grep sdosanjh <filename>
sdosanjh myhostname myfilename
NOW WHAT I WANT IS :-
sdosanjh should be in variable (say NAME)
myhostname should be in variable (say... (8 Replies)
Discussion started by: sdosanjh
8 Replies
5. Shell Programming and Scripting
Hi,
i have an issue with eval and variable assignment.
1) i have a date value in a variable and that date is part of a filename,
var1=20100331
file1=${var1}-D1-0092.xml.zip
file2=${var2}-D2-0092.xml.zip
file3=${var3}-D3-0092.xml.zip
i am passing the above variables to a script via... (11 Replies)
Discussion started by: mohanpadamata
11 Replies
6. Shell Programming and Scripting
Hi,
In AIX I have a variable with , (coma) separated values assigned to it like shown below
var1=apple,boy,chris
i want to convert this to
var1='apple','boy','chris'
the number of values assigned to var1 might change and it could be from 1 to n
any suggestions please? (3 Replies)
Discussion started by: rahul9909
3 Replies
7. Shell Programming and Scripting
hi everyone
pls pls help in the query below
it's urgent
pls
-bash-3.00$ abc=deepak
-bash-3.00$ a=1
-bash-3.00$ def_${a}=$abc
-bash: def_1=deepak: command not found
y iti is giving error ? (3 Replies)
Discussion started by: aishsimplesweet
3 Replies
8. Shell Programming and Scripting
Hi
I have a strange problem:
In my shell script I am performing a copy task:
. prop.txt
cp -r $dir/ $dir/archive
$dir is fetched from a property file (prop.txt) which stores its value
dir=/opt/data
Now the problem is another dir1 comes into picture. I only want to add... (1 Reply)
Discussion started by: ankur328
1 Replies
9. Shell Programming and Scripting
#!/bin/sh
if
then
echo "Insufficient number of arguments ">> error".log" ;
echo "Please check error log for more details";
exit 1 ;
else
file_name=$1".csv";
fi ;
in_par_number=`head -n1 $file_name | sed 's///g' | wc -c`
read -a arr <<< `head -n1 $file_name | sed 's// /g'`
... (6 Replies)
Discussion started by: JayDoshi
6 Replies
10. Shell Programming and Scripting
Hi
I am facing a problem.
export local_folder=/opt/app/
cd /opt/app/abc/
abcversion="abc*" (abcga5 is inside /opt/app/abc/)
echo $abcversion (it echoes the correct version as abcga5 )
Now when I reuse the value of abcversion for a below path:
export... (6 Replies)
Discussion started by: ankur328
6 Replies
LEARN ABOUT DEBIAN
wormhole
wormhole(6x) XScreenSaver manual wormhole(6x)
NAME
wormhole - animation of flying through a wormhole
SYNOPSIS
wormhole [-display host:display.screen] [-window] [-visual visual] [-root] [-stars n] [-delay usecs] [-zspeed n] [-fps]
DESCRIPTION
The wormhole program shows an animation of flying through a tunnel surrounded by streaks of light.
OPTIONS
wormhole accepts the following options:
-window Draw on a newly-created window. This is the default.
-root Draw on the root window.
-mono Make all the rocks the same color.
-install
Install a private colormap for the window.
-visual visual
Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.
-stars integer
Number of stars to create every animation loop.
-zspeed integer
Speed light streaks fly by.
-delay microseconds
Number of microseconds to delay between each frame. Default 10000, meaning about 1/100th second. Compare and contrast with
-zspeed, above.
-fps Display the current frame rate and CPU load.
ENVIRONMENT
DISPLAY to get the default host and display number.
XENVIRONMENT
to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.
SEE ALSO
X(1), xscreensaver(1)
COPYRIGHT
Copyright (C) 2004 by Jon Rafkind. Permission to use, copy, modify, distribute, and sell this software and its documentation for any pur-
pose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and
this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any pur-
pose. It is provided "as is" without express or implied warranty.
AUTHOR
Jon Rafkind <jon@rafkind.com>
X Version 11 5.15 (28-Sep-2011) wormhole(6x)