I kept looking at this, since it seemed a little off somehow... Writing the same function 11 times with slight changes in each, is work fit for a computer. Why not use the same function, with different inputs?
Like...
And then inside, you can have a loop:
You could move 'plot' inside it completely, actually.
Last edited by Corona688; 07-17-2013 at 05:08 PM..
Hi,
I have a variable (x) that holds a file name - I need to write this:
if x matches the patern *ABC* or the pattern DEF*T then
action A
else
action B
fi
how to do that?
Also, how can i change the or test to AND test?
Thanks. (2 Replies)
Hello. I'm a complete newbie to C programming. I have a C program that wasn't written by me where I need to write some wrappers around it to automate and make it easier for a client to use. The problem is that the program accepts standard input to control the program... I'm hoping to find a simple... (6 Replies)
hey all, im new and my first question is:
say i have a word "blahblah"
how do i get and replace the last letter of the word with say k, so replace the h with a k.
However you cant just replace the h it has to change the LAST LETTER of the word.
Cheers In advance.
:b: (0 Replies)
Hello to all,
I have a very simple script that Ii run to CD into a specific directory. When I run it without a dot notation or shell notation (as a subshell, therefore), the script does not actually change the directory. But how do I avoid using the dot or shell notation and still be able to... (1 Reply)
i have a part of script that is not getting me what i want?
Below the script
count=5
count1=1
if
then
echo $count1
count1=`expr $count1 + 1`
fi
--------------------------------------------------------
The result i want is 1 2 3 4 5
But its giving me result as only 1.
Plz help... (2 Replies)
Hello all!
This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician.
Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix:
... (16 Replies)
Cheers!
In /etc/syslog.conf, if an error type is not specified, is it logged anywhere (most preferable is it logged to /var/log/messages) or not?
To be more precise I am interested in error and critical level messages. At default these errors are not specified in syslog.conf, and I need to... (6 Replies)
I am trying to implement a simple chess clock. It should have the following options: start, stop, reset, read.
Reset will set the time to zero
Start will start the clock
Stop will stop the clock
My problem is that I want that start continues counting
the time from the time it had when it... (6 Replies)
Discussion started by: kristinu
6 Replies
LEARN ABOUT PLAN9
plot
PLOT(1) General Commands Manual PLOT(1)NAME
plot - graphics filter
SYNOPSIS
plot [ file ... ]
DESCRIPTION
Plot interprets plotting instructions (see plot(6)) from the files or standard input, drawing the results in a newly created 81/2(1) win-
dow. Plot persists until a newline is typed in the window. Various options may be interspersed with the file arguments; they take effect
at the given point in processing. Options are:
-d Double buffer: accumulate the plot off-screen and write to the screen all at once when an erase command is encountered or at end
of file.
-e Erase the screen.
-c col Set the foreground color (see plot(6) for color names).
-f fill Set the background color.
-g grade Set the quality factor for arcs. Higher grades give better quality.
-p col Set the pen color.
-w Pause until a newline is typed on standard input.
-C Close the current plot.
-W x0,y0,x1,y1
Specify the bounding rectangle of plot's window. By default it uses a 512x512 window in the middle of the screen.
SOURCE
/sys/src/cmd/plot
SEE ALSO
81/2(1), plot(6)PLOT(1)