This is a search script that I have developed. It finds the records that I look for. However the only thing I want the program to do now is to display a message such as 'Not Found' to appear when a record is not found. So far when a search doesn't display a record, the screen is blank.
... (14 Replies)
hi all. i have a little problem. im basically reading input from the user from the keyboard into the variable "phonenumber". I want to do a little error check to check if the user doesnt enter anything in for the value phonenumber.
i had this:
read phonenumber
if
then
.....
else
........ (2 Replies)
Hi everyone - I am sure this is a really simple problem but I'm a total noob at Linux scripting:
I wanted to create a script that allows me to compare the current week number to the contents of a text file in my home directory:
VAR1='date +%V'
VAR2='cat /home/fred/file.txt'
... (6 Replies)
Hi everyone, I am facing to one shell script problem, which is as following
Write a shell script that:
Takes a number of arguments.
For each argument, print out all files in the current directory that contain this substring in their name.
I know I need to use grep for the second... (7 Replies)
Hi all,
I have set up a simple awk script to calculate the average of values that are printed out a number of times per second (the number of time the printing occurs varies). The data is of the format shown below:
1 4.43
1 3.65
1 2.45
2 7.65
2 8.23
2 5.65
3 4.65
3 6.21
.. ..
120... (4 Replies)
#!/bin/csh
echo hello world
this is what i got in a text file called ss1.
i type "chmod 755 ss1.txt" to make it executable.
then when i type
ss1
or
ss1.txt
it says
"ss1 command not found"
what am i doing wrong? (19 Replies)
Hello forum memebers.
can you correct the simple while program.
#! /bin/ksh
count=10
while
do
echo $count
count='expr$count-1'
done
I think it will print 10 to 1 numbers but it running for indefinite times. (2 Replies)
I want to find and replace string from files present in one directory.
user will input the string to be searched and to replace .
Here is my program but Not working
echo "Enter Old domain name:"
read old
echo "Enter New domain name:"
read new
grep -rl '$old' /var/www/ | xargs sed -i... (4 Replies)
Hello,
when running the scripts below I am not getting message bb2.
Can you please help?
#!/bin/bash
TLOG=/tmp/bb/amatest.log
FTPRESULTS=/tmp/bb/amlist
export TLOG FTPRESULTS
>$TLOG
>$FTPRESULTS
echo bb1
sftp -oPort=2222 XXXXXXXXXXXXX@sftp.userssedi.com <<EOF
cd... (5 Replies)
Discussion started by: biljana
5 Replies
LEARN ABOUT DEBIAN
plmesh
PLMESH(3plplot) PLplot API PLMESH(3plplot)NAME
plmesh - Plot surface mesh
SYNOPSIS
plmesh(x, y, z, nx, ny, opt)
DESCRIPTION
Plots a surface mesh within the environment set up by plw3d(3plplot). The surface is defined by the two-dimensional 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. The parameter opt controls the way in which the surface is displayed. For further details see the
PLplot documentation.
Redacted form: plmesh(x, y, z, opt)
This function is used in example 11.
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: opt=DRAW_LINEX: Lines are drawn showing z as a function of x for each value
of y[j]. opt=DRAW_LINEY: Lines are drawn showing z as a function of y for each value of x[i]. opt=DRAW_LINEXY: Network of lines is
drawn connecting points at which function is defined.
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 PLMESH(3plplot)