Hi,
Thanks for the quick reply.. That works perfect for echoing the variables but what I'm really trying to do is the following which is copy a contacts file with in a subfolder and rename it with the prefix of its platform and server name to a new location:
When I tried the above it only copied the last server in the list and it didn't rename the file..
hi,
how would i go about making a loop which gets each line from a single text file, set it to a variable and then print it to screen?
thanks
eg:
#!/bin/sh
FILE="somefile.txt"
text_line=""
what kind of loop would use here? (18 Replies)
Hi all
Sorry for the basic question, but i am writing a shell script to get around a slightly flaky binary that ships with one of our servers. This particular utility randomly generates the correct information and could work first time or may work on the 12th or 100th attempt etc !.... (4 Replies)
I'm improving the way an existing script handles arrays, but the results aren't what I had in mind:
e="Too many consecutive errors... System is probably unstable!"
e="Cancelable Timer Wait Failed!"
for errcd in ${e}
do
echo ${errcd}
done
The for loop interprets the spaces... (2 Replies)
hey guys what im trying to do is do a simple script that will ask for a password and on the 5th time it says access denied if the right password is still not entered this is what i have so far can anyone help me im not good with scripting
thanks in advance
#!/bin/bash
secretname=secret... (2 Replies)
I am struggling with the for loop. I have a file name heros.txt and I would like to go through a list in file where.txt and see if I can find the name from where inside heros.
One of the problems that I am having is I dont understand how to setup the for loop to find the list to search.:wall:
... (6 Replies)
I have two files. In file one, there are many columns, but only two of interest to me. Column 1 contains a list of individuals, defined by an ID number. Column 10 contains the diagnosis that each individual has (I am a physician). All together, there are 3000 lines in this file, one line per... (2 Replies)
Hi,
I have a requirement where I have to check for 10 files in Unix location. If all of the files present in that directory then i have execute another process.
can you help me resolving this issue.
sample
location
/home/usr
abc.txt
cde.txt
aaaa.txt
lll.txt
ooo.txt
if all the... (3 Replies)
Hi,
I have code like below
disk_list=$(ls /root/file1)
for disk in $disk_list
do
pvcreate $i
done
I know what pvcreate command does, but I do not understand what this $i do here. can someone please explain. (2 Replies)
Discussion started by: stew
2 Replies
LEARN ABOUT DEBIAN
plsurf3d
PLSURF3D(3plplot) PLplot API PLSURF3D(3plplot)NAME
plsurf3d - Plot shaded 3-d surface plot
SYNOPSIS
plsurf3d(x, y, z, nx, ny, opt, clevel, nlevel)
DESCRIPTION
Plots a three dimensional shaded surface plot within the environment set up by plw3d(3plplot). The surface is defined by the two-dimen-
sional array z[nx][ny], the point z[i][j] being the value of the function at (x[i], y[j]). Note that the points in arrays x and y do not
need to be equally spaced, but must be stored in ascending order. For further details see the PLplot documentation.
Redacted form: plsurf3d(x, y, z, opt, clevel)
This function is not used in any examples.
ARGUMENTS
x (PLFLT *, input)
Pointer to set of x coordinate values at which the function is evaluated.
y (PLFLT *, input)
Pointer to set of y coordinate values at which the function is evaluated.
z (PLFLT **, input)
Pointer to a vectored two-dimensional array with set of function values.
nx (PLINT, input)
Number of x values at which function is evaluated.
ny (PLINT, input)
Number of y values at which function is evaluated.
opt (PLINT, input)
Determines the way in which the surface is represented. To specify more than one option just add the options, e.g. FACETED +
SURF_CONT opt=FACETED: Network of lines is drawn connecting points at which function is defined. opt=BASE_CONT: A contour plot is
drawn at the base XY plane using parameters nlevel and clevel. opt=SURF_CONT: A contour plot is drawn at the surface plane using
parameters nlevel and clevel. opt=DRAW_SIDES: draws a curtain between the base XY plane and the borders of the plotted function.
opt=MAG_COLOR: the surface is colored according to the value of Z; if MAG_COLOR is not used, then the default the surface is colored
according to the intensity of the reflected light in the surface from a light source whose position is set using pllight-
source(3plplot).
clevel (PLFLT *, input)
Pointer to the array that defines the contour level spacing.
nlevel (PLINT, input)
Number of elements in the clevel array.
AUTHORS
Geoffrey Furnish and Maurice LeBrun wrote and maintain PLplot. This man page was automatically generated from the DocBook source of the
PLplot documentation, maintained by Alan W. Irwin and Rafael Laboissiere.
SEE ALSO
PLplot documentation at http://plplot.sourceforge.net/resources.
August, 2012 PLSURF3D(3plplot)