Hi,
What is the maximum number of arguments that could be passed to zsh ?
To find out that I tried a simple script.
And the maximum number of arguments that could be passed turned out to be 23394
#! /bin/zsh
arg=1
i=1
subIndex=23000
while
do
arg=$arg" "$i
i=$(($i + 1))... (9 Replies)
Can someone please help me with this SHELL script?
I need to create a script that gets a positive number n as an argument. The script must calculate the factorial of its argument. In other words, it must calculate n!=1x2x3x...xn. Note that 0!=1.
Here is a start but I have no clue how to... (3 Replies)
I want to compress backup files to tape using compress on our AIX 4.2
- Our TAR does not have compression.
- I do not want to use local storage to compress as most of the filesystems are pretty full.
- the only compressing tool we have is 'compress'
- tapes are 5Gb 8mm
I am trying this... (10 Replies)
Below is my script:
#!/bin/sh
#echo "Please type oracle-lower case please:"
#read X
#if ]
#then
# echo "Sorry that is not oracle, try again"
# exit 1
#else
# echo Thank you
#fi
find / -name oracle 2>/dev/null |
while read line
do
bdf 2>/dev/null |... (6 Replies)
I wrote the day calculator also in bash. I would like to now, that is it good so?
#!/bin/bash
datum1=`date -d "1991/1/1" "+%s"`
datum2=`date "+%s"`
diff=$(($datum2-$datum1))
days=$(($diff/(60*60*24)))
echo $days
Thanks in advance for your help! (3 Replies)
Hi,
I have a text file with some thousands of rows of the following kind (this will be referred to as the inputFileWithColorsAndNumbers.txt):
Blue 6
Red 4
Blue 3
Yellow 4
Red 7
Colors in the left column and a number in the right one for each line. I want to run an awk... (5 Replies)
Discussion started by: Zooma
5 Replies
LEARN ABOUT DEBIAN
cfdg
CONTEXTFREE(1) Context Free CONTEXTFREE(1)NAME
cfdg - image generator based on context-free grammars
SYNOPSIS
cfdg [options] input.cfdg [output.png/svg]
DESCRIPTION
Context Free is a system that produces images based on context-free grammars. cfdg is the command-line program to generate the actual
images (in PNG or SVG format) from the input.cfdg file containing these grammars. If - is specified instead of an input file, the grammar
is read from standard input. The output filename can be left out if the -o option is used. Note that the output mode (PNG or SVG) is not
detected depending on the specified extension, but must be explicitly set using the -V option.
OPTIONS
All command-line options consist of a single letter, and an optional argument. A summary of options supported by cfdg is included below.
-w width
Set width of the output image in pixels (for PNG) or millimeters (for SVG) (default: 500).
-h height
Set height of the output image in pixels (for PNG) or millimeters (for SVG) (default: 500).
-s size
Set both width and height of the output image in pixels (for PNG) or millimeters (for SVG).
-m maximum shapes amount
Set the maximum number of shapes rendered (default: no maximum).
-x minimum shape size
Set the minimum size for a shape to be rendered in pixels/mm (default: 0.3).
-b border size
Set the border size: -1 for a -8 pixel border, 0 for no border, 1 for an 8 pixel border, or 2 for a variable-sized border.
-v variation code
Set the variation code (default: random). This code determines what the final image will look like when the input contains non-
deterministic rules.
-o filename
Set the output filename. In this filename, %f is replaced by the animation frame number (if any), %v and %V are replaced by the
variation code (in lower or upper case, respectively), and %% is replaced by a literal %.
-L Previous versions of cfdg created different designs for the same variation code depending on whether a big- or little-endian machine
was used; now the little-endian variation is created on all machines. Use this option to get the old behaviour on a big-endian
machine.
-a number of frames
Generate num animation frames (only possible using PNG output).
-z Zoom out during animation, when producing an animation using -a.
-V Generate SVG (vector) output.
-c Crop image output.
-q Quiet mode; suppress non-error output.
-? Show summary of options.
SEE ALSO
More information can be found on the Context Free website, at http://contextfreeart.org/.
AUTHOR
Context Free was written by Chris Coyne, John Horigan and Mark Lentczner.
This manual page was written by Bram Senders <bram@luon.net>, for the Debian project (but may be used by others).
2.2 2009-02-08 CONTEXTFREE(1)