07-10-2011
What is this $jot variable?
If it's not a variable, why the $ ?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am new to scripting in AIX / UNIX. I have a script that runs 4 other scripts and I want to be able to pass in a agrument that I can check before I run the next script to see if the previous script finished with no errors.
Can someone send me an example of this as I'm sure it's pretty easy to... (1 Reply)
Discussion started by: David.Vilmain
1 Replies
2. Shell Programming and Scripting
Hello everybody! First time posting here:)
Right, I am trying to pass arguments in my shell scripts using $1, $2 and $3 etc using if else statement........
This is my shell script which is based on serching the google website
#!/bin/sh
wget -t1 -E -e robots=off - -awGet.log -T 200 -H... (47 Replies)
Discussion started by: kev_1234
47 Replies
3. Shell Programming and Scripting
Hi,
I've written a script that runs on a Database server. It has to shutdown the Application server, do an Oracle Dump and then restart the Application server. Its been a long time since I wrote any shells scripts. Can you tell me if the scripts that I execute within my script will be executed... (3 Replies)
Discussion started by: brockwile1
3 Replies
4. Shell Programming and Scripting
Hi all,
I have set up a cron job which calls another shell script shell script which in turn calls a Java process. The cron tab looks so.
0,30 7-18 * * 1-5 /u01/home/weblogic/brp/bin/checkstatus.sh >> /u01/home/weblogic/logs/checkstatus.log
The checkstatus.sh scripts looks like this.
... (4 Replies)
Discussion started by: sirbrian
4 Replies
5. Shell Programming and Scripting
Hi,
I have to write a program to compute the checksums of files
./script.sh
I wrote the program using bash and it took me forever since I am a beginner but it works very well.
I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Discussion started by: pgarg1989
3 Replies
6. Shell Programming and Scripting
Hello,
is it possible to give grep two documents to surche for? like
grep "test" /home/one.txt AND /home/two.txt ?
thanks (1 Reply)
Discussion started by: Cybertron
1 Replies
7. Shell Programming and Scripting
Dear Members,
I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc.
I would like to create a script which will will call other scripts based on the request action.
Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies
8. Shell Programming and Scripting
Dear all,
I am working on script which call other shell scripts in a loop but problem is from second script am not able to come out.
Here is the snippet:-
#!/bin/bash
HSFILE=/root/Test/Components.txt
LOGFile=/opt/domain/AdminDomain/application/logs... (3 Replies)
Discussion started by: sharsour
3 Replies
9. Shell Programming and Scripting
Hi All,
i have a requirement, that script should take inputs/arguments from a file.
1. There is already a script which will ask for input for execution of next step, say: date, reason. name etc....
2. I dont have read or write access to this script just execute permissions.
I tried... (5 Replies)
Discussion started by: nanz143
5 Replies
10. Shell Programming and Scripting
# more minusf.awk
#!/bin/awk -f
BEGIN {
FS=":";
}
{
if ( $2 == "" ) {
print $1 ": no password!";
}
}
# ./minusf.awk aa aa aa aa
awk: can't open aa (6 Replies)
Discussion started by: sri.phani
6 Replies
LEARN ABOUT DEBIAN
athena-jot
JOT(1) General Commands Manual JOT(1)
NAME
jot - print sequential or random data
SYNOPSIS
jot [ options ] [ reps [ begin [ end [ s ] ] ] ]
DESCRIPTION
Jot is used to print out increasing, decreasing, random, or redundant data, usually numbers, one per line. The options are understood as
follows.
-r Generate random data instead of sequential data, the default.
-b word
Just print word repetitively.
-w word
Print word with the generated data appended to it. Octal, hexadecimal, exponential, ASCII, zero padded, and right-adjusted repre-
sentations are possible by using the appropriate printf(3) conversion specification inside word, in which case the data are inserted
rather than appended.
-c This is an abbreviation for -w %c.
-s string
Print data separated by string. Normally, newlines separate data.
-n Do not print the final newline normally appended to the output.
-p precision
Print only as many digits or characters of the data as indicated by the integer precision. In the absence of -p, the precision is
the greater of the precisions of begin and end. The -p option is overridden by whatever appears in a printf(3) conversion following
-w.
The last four arguments indicate, respectively, the number of data, the lower bound, the upper bound, and the step size or, for random
data, the seed. While at least one of them must appear, any of the other three may be omitted, and will be considered as such if given as
-. Any three of these arguments determines the fourth. If four are specified and the given and computed values of reps conflict, the
lower value is used. If fewer than three are specified, defaults are assigned left to right, except for s, which assumes its default
unless both begin and end are given.
Defaults for the four arguments are, respectively, 100, 1, 100, and 1, except that when random data are requested, s defaults to a seed
depending upon the time of day. Reps is expected to be an unsigned integer, and if given as zero is taken to be infinite. Begin and end
may be given as real numbers or as characters representing the corresponding value in ASCII. The last argument must be a real number.
Random numbers are obtained through random(3). The name jot derives in part from iota, a function in APL.
EXAMPLES
The command
jot 21 -1 1.00
prints 21 evenly spaced numbers increasing from -1 to 1. The ASCII character set is generated with
jot -c 128 0
and the strings xaa through xaz with
jot -w xa%c 26 a
while 20 random 8-letter strings are produced with
jot -r -c 160 a z | rs -g 0 8
Infinitely many yes's may be obtained through
jot -b yes 0
and thirty ed(1) substitution commands applying to lines 2, 7, 12, etc. is the result of
jot -w %ds/old/new/ 30 2 - 5
The stuttering sequence 9, 9, 8, 8, 7, etc. can be produced by suitable choice of precision and step size, as in
jot 0 9 - -.5
and a file containing exactly 1024 bytes is created with
jot -b x 512 > block
Finally, to set tabs four spaces apart starting from column 10 and ending in column 132, use
expand -`jot -s, - 10 132 4`
and to print all lines 80 characters or longer,
grep `jot -s "" -b . 80`
SEE ALSO
ed(1), expand(1), rs(1), yes(1), printf(3), random(3), expand(1)
4th Berkeley Distribution June 6, 1993 JOT(1)