This thread today reminded me of it: Larger window
This is OSX 10.13.6 and greater centric only.
This expands the terminal window on the fly in bash.
You initially need to put the standard terminal window to the top left hand side as far as it goes.
I wrote this for my 19 month old grandson, (17-06-2018), as he loves punching the computer keyboard.
It is a simple keyboard plaything that prints a coloured squared in a random position inside an expanded terminal window. The window size is for a MBP 13 inch device so that is the reason for the odd terminal size.
If the first argument is set to [Yy] then a single alpha-numeric character is spoken so little one can learn said characters as well as printing the random coloured square. If the second argument is set to [Yy] then you can write a sentance of not more than 40 characters to aid in speech learning also with the random coloured square.
If there are no arguments then just the random coloured square is generated per keystroke.
Have fun little ones.
I have been troubleshooting a mysterious performance problem with the nightly batch programs on our primary system for quite some time and just found something very interesting. All batch processes are running with a nice value of 24. I don't know what the default is on other systems but I do know... (3 Replies)
i have content that looks like this:
0003326050 A E LITHO
0023823422 AMERICAN RED CROSS
0005713642 ARUP LABORATORIES
0003206450 CAEL
0002519930 CARDINAL HEALTH
0002619063 FISHER HEALTHCAR
0065203177 OWENS & MINOR INC
0016552938 STAPLES INC
0000002001 MSC... (8 Replies)
Hi
I would like to test for a max number value. It may be a decimal so I know I have to pipe into bc.
I just cannot get the syntax for this to work. I cannot get passed an error with the bracket - see below.
Any help appreciated.
Regards
Ewan
This works:
/export/home/ewan> cat... (5 Replies)
Hello All,
I am trying to come up with a shell script to count a specific word in a logfile on each day of this month, last month and the month before. I need to produce this report and email it to customer.
Any ideas would be appreciated! (5 Replies)
Hi,
I have a script that accepts an input date from the user in yyyy-mm-dd format.
I need to get the mm-dd part and convert it to month name.
example:
2011-11-15
I want that to become "Nov 15"
I don't have the GNU date, I am using an AIX os.
Thanks. (1 Reply)
Hello,
i`m looking for some way to add to some date an partial number of months, for example to 2015y 02m 27d + 2,54m
i need to write this script in php or bash or sh or mysql or perl in normal time o unix time
i`m asking or there are any simple way to add partial number of month to some... (14 Replies)
Hi,
I need all file names in a folder which has date >= 10th of last month,
Example
: files in folder
AUTO_F1_20140610.TXT
BUTO_F1_20140616.TXT
CUTO_F1_20140603.TXT
FA_AUTO_06012014.TXT
LA_AUTO_06112014.TXT
MA_AUTO_06212014.TXT
ZA_AUTO_06232014.TXT
Output:
AUTO_F1_20140610.TXT... (9 Replies)
Dear Masters,
I need to eliminate lines from file input 2 when the date in column 1 more than date in column 1 in file input 1
input 1
20141101|USA|CANSEL|496420000
20141101|USA|CANUT|1069740000
20141101|USA|CANTENG|625920000
20141102|USA|CANUT|413180000
20141103|USA|CANSEL|1364245000... (5 Replies)
Discussion started by: radius
5 Replies
LEARN ABOUT OPENDARWIN
jot
JOT(1) BSD General Commands Manual JOT(1)NAME
jot -- print sequential or random data
SYNOPSIS
jot [-cnr] [-b word] [-w word] [-s string] [-p precision] [reps [begin [end [s]]]]
DESCRIPTION
The jot utility is used to print out increasing, decreasing, random, or redundant data, usually numbers, one per line.
The following options are available:
-r Generate random data instead of the default sequential data.
-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 represen-
tations 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, the seed, s, is picked
randomly. The reps argument is expected to be an unsigned integer, and if given as zero is taken to be infinite. The begin and end argu-
ments 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 step size, as in
jot - 9 0 -.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`
DIAGNOSTICS
The jot utility exits 0 on success, and >0 if an error occurs. The following diagnostic messages deserve special explanation:
illegal or unsupported format '%s' The requested conversion format specifier for printf(3) was not of the form
%[#][ ][{+,-}][0-9]*[.[0-9]*]?
where ``?'' must be one of
[l]{d,i,o,u,x}
or
{c,e,f,g,D,E,G,O,U,X}
range error in conversion A value to be printed fell outside the range of the data type associated with the requested output format.
too many conversions More than one conversion format specifier has been supplied, but only one is allowed.
SEE ALSO ed(1), expand(1), rs(1), yes(1), printf(3), random(3)BSD June 6, 1993 BSD