11-03-2008
I agree, unless you wanted the output of the ls command to be displayed as well for some reason.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I want to know if there is a way to send unix commands thru FTP from a mainframe to kick off Autosys Jobs. I just need to send a command from the mainframe to UNIX and have UNIX execute that command. (2 Replies)
Discussion started by: skammer
2 Replies
2. UNIX for Advanced & Expert Users
wuts the command that allows u to use 2 commands on one line? (2 Replies)
Discussion started by: el_soldado
2 Replies
3. Shell Programming and Scripting
Hello
I'm very new to unix, am learning it as part of my new job.
I have a book which has a list in the back, of a number of commands and their command line flags, detailing what these flags are used for.
I've been looking everywhere for an electronic copy of this type of list, so I can... (4 Replies)
Discussion started by: Kedgeboy
4 Replies
4. UNIX for Dummies Questions & Answers
I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked.
Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies
5. Shell Programming and Scripting
hello, is there a way to seperate commands that are on the same line?
ie: echo "yes count(*)>0:" $passvar > dsp cat dsp cat dsp > log
i'm trying to put these 3 commands on the same line, but when i do they all get concatenated into 1 lieteral
if i put the cat commands on... (3 Replies)
Discussion started by: bobk544
3 Replies
6. UNIX for Dummies Questions & Answers
Hi to all,
I have a file with 1000 lines,Now i need to get 789th record.So please any one help me out from this.
Thanks in advance.
Sathish (3 Replies)
Discussion started by: bsathishmca
3 Replies
7. UNIX for Dummies Questions & Answers
hi!
how do i run 2 command from the same line
e.g: 'which screen' and then ls -la 'which screen' (4 Replies)
Discussion started by: rdns
4 Replies
8. UNIX for Dummies Questions & Answers
I tried opening the windows command line and typing UNIX commands, but they don't work. It kept saying that it was not recognized as an internal or external command, operable program or batch file.
Removed strange sentence with even stranger link
I need to use UNIX commands such as 'less',... (9 Replies)
Discussion started by: vlay2
9 Replies
9. UNIX for Dummies Questions & Answers
Hi There,
I have a cronjob that executes a small script (few lines) that I am certain can be achieved in a single line.
The functional objective is actually really simple;
cmd var1
The '1' in 'var1' is actually derived from date (day of month) but the snag is when working with 1-9 I... (3 Replies)
Discussion started by: Random79
3 Replies
10. Shell Programming and Scripting
Using ksh on AIX what I am trying to do is to read the ls -l output from a file in a do while loop line by line. Extract the user name(3rd field) and the directory/file name(9th field) using awk and save them into variables. su -c to the user and change directory/file permisions to 777. Script I... (13 Replies)
Discussion started by: zubairom
13 Replies
LEARN ABOUT DEBIAN
matho-primes
MATHO-PRIMES(1) Mathomatic Utilities MATHO-PRIMES(1)
NAME
matho-primes - generate consecutive prime numbers
SYNOPSIS
matho-primes [start [stop]] ["twin"] ["pal" [base]]
matho-primes [-htu] [-c count] [-m number] [-p base] [start [stop]]
DESCRIPTION
This command-line utility is optionally part of the mathomatic(1) package. It quickly computes any number of consecutive prime numbers
using a windowing, memory efficient sieve of Eratosthenes algorithm, dumping them to standard output. They are displayed one prime per
line in ascending order, unless the "twin" option is specified, which displays only twin primes, two primes per line.
Generates up to 18 decimal digit primes, or whatever is the number of digits of precision for a floating point long double in the C com-
piler used to compile this utility. Note that this utility might be compiled to use only double precision floating point, if long double
precision is not fully supported by the C compiler or hardware, allowing at most 15 decimal digit primes in that case.
Ways to verify that this utility is working are to pipe the output into the Unix "factor" utility, or compare the output with the BSD Games
"primes" utility.
All numbers displayed by this utility are decimal (base 10) prime numbers. A prime number is an integer that cannot be factored.
A range may be specified on the command line, otherwise the starting number and the number of primes to output is prompted for. The range
is start to stop inclusive, and stop must be greater than or equal to start.
If the -c option is specified, the number of lines of primes displayed is limited to the decimal count that follows this option.
If the -t or "twin" option is specified on the command line, only twin primes will be displayed. Twin primes are two primes that differ in
value by 2. Each twin pair is displayed together on the same line separated by a space character.
If the -p or "pal" option is specified on the command line, only palindromic primes are displayed. Palindromes are symmetrical, they read
exactly the same forward and backward. The palindromic number base may be specified, the default is base 10. The base can be any integer
greater than 1. Primes are always displayed in decimal (base 10).
The version number and short help on the allowed command-line parameters and usage information are displayed when given the -h option.
With the -u option, all output (standard output and standard error output) is set to be unbuffered, making all output happen immediately,
instead of when the output buffer is full or when the program terminates or waits for input.
The -m option changes the memory size of the prime number sieve window. It is followed by a decimal, floating point number which is a mul-
tiplier of the default window size. It is possible that changing the memory size may speed up the total run time; otherwise there is no
reason to use this option.
AUTHOR
George Gesslein II (gesslein@mathomatic.org) at "http://www.mathomatic.org".
REPORTING BUGS
If you find a bug, please report it to the author or at "https://launchpad.net/mathomatic".
SEE ALSO
mathomatic(1), primorial(1), matho-mult(1), matho-sum(1)
Mathomatic MATHO-PRIMES(1)