10 More Discussions You Might Find Interesting
1. OS X (Apple)
I don't know if anyone is interested but I have been meddling with FFT for the AMIGA.
(Sadly we AMIGAns don't have these luxuries through any scripting language.
Below is a Python snippet that uses the builtin 'cmath' module to work with the lowly
Python 2.0.1 for the AMIGA. It is part of a... (0 Replies)
Discussion started by: wisecracker
0 Replies
2. Solaris
Hello,
I want to pick a random element from a list, and created these 2 lines, which work very well in ksh93. Unfortunately, I get this "bad substitution" message in ksh88.
I'm wondering if there's an equivalent to the second line of my script.. or if I have to install ksh93 to make this... (8 Replies)
Discussion started by: gfroute
8 Replies
3. Shell Programming and Scripting
Hi I tried the following code to FTP the files from test server to dev
#!/bin/ksh
DST=/home/files
cd $DST
ftp -inv 'test_serv101' << EOF
quote USER test
quote PASS test
# File Path on test server
cd /etc/home/Or_Files
ascii
mget curMonth* $DST
quit
EOF
when i try the above code it... (4 Replies)
Discussion started by: smile689
4 Replies
4. Shell Programming and Scripting
I'm using Ksh88 .
I've last day files in one directory and current month files in another directory , having the same naming convention.
Now i need to compare these folders size , if there is no change in these files then no action to be performed
else if there is a change then i need to call... (1 Reply)
Discussion started by: smile689
1 Replies
5. Shell Programming and Scripting
Hi I tried the following string comparison script in Ksh88
#!/bin/ksh
str1='aC'
str2='ABC'
if
then
echo "Equal"
else
echo "Not Equal"
fi
Though str1 and str2 are not equal the script output says Equal .
Please correct me
Thanks (2 Replies)
Discussion started by: smile689
2 Replies
6. Shell Programming and Scripting
Hi,
With:
# VALUES="one~two~~~"
# echo $VALUES | awk 'BEGIN {FS="~"} {print NF}'
5
I can determine the number of fields.
How to determine the number of fields with a value ?
In this case 2.
Thanks in advance,
ejdv (6 Replies)
Discussion started by: ejdv
6 Replies
7. Shell Programming and Scripting
I have to use KSH88, so going to BASH, perl etc. is not an option.
Below is a much simplified verison of what I am doing (aka ignore my cut command and i not increasing) :)
i=1
BIGSTRING="one two three four five six seven eight"
while ]; do
typeset "STRING$i=`echo $BIGSTRING| cut -d' '... (8 Replies)
Discussion started by: nitrobass24
8 Replies
8. Shell Programming and Scripting
Hello,
I need ksh88 for my linux system - and I don't want pdksh.
Possible to get original ksh 88 binaries or source ?
(I don't need ksh93 which is available)
thanks
Vilius (1 Reply)
Discussion started by: vilius
1 Replies
9. Shell Programming and Scripting
Hello,
ksh88 doesn't support ${var:x:y}.
Any alternatives to get substring ?
thanks
Vilius (2 Replies)
Discussion started by: vilius
2 Replies
10. Shell Programming and Scripting
Hi all!
Does anybody know how can I check if any UNIX installation has implemented ksh88 or ksh93?
Thanks in advance.
Néstor. (3 Replies)
Discussion started by: Nestor
3 Replies
CURSES_DEFAULT_COLORS(3) BSD Library Functions Manual CURSES_DEFAULT_COLORS(3)
NAME
curses_default_colors, assume_default_colors, use_default_colors -- curses default colors setting routines
LIBRARY
Curses Library (libcurses, -lcurses)
SYNOPSIS
#include <curses.h>
int
assume_default_colors(short fore, short back);
int
use_default_colors();
DESCRIPTION
These functions tell the curses library to set the default colors or to use the terminal's default colors instead of using the default colors
for curses applications (which are white foreground on black background).
The function assume_default_colors(fore, back) sets the default colors to foreground color fore and background color back. If a value of -1
is used for a color, then the terminal default color is used for that color.
The function use_default_colors() sets both the foreground and background colors to the terminal default colors. This is equivalent to
assume_default_colors(-1, -1).
RETURN VALUES
These functions return OK on success and ERR on failure.
SEE ALSO
curses_color(3)
STANDARDS
These functions are based on ncurses extensions to the curses standards.
HISTORY
These functions first appeared in NetBSD 2.0.
BSD
October 13, 2002 BSD