08-07-2006
Bash Shell
How do i get rid of those blue & other colors in bash, i just want to have the text all the same, I use PuTTY and the colors up against my black backdrop and green test does not go well/
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am using HP-UX. Here ksh is configured as a default shell. How can i change this to bash.
And please let me know of any freely available X-Terminals through which i can connect to Unix system from Windows.
Regards,
Vijay Hegde (2 Replies)
Discussion started by: VijayHegde
2 Replies
2. Shell Programming and Scripting
Hi,
I have only bash on my system. And I want to run a C shell... Is there a way for that? (3 Replies)
Discussion started by: HSN
3 Replies
3. Shell Programming and Scripting
(reposting this with a better title)
Cool. I played with scripts at home over the weekend. Come to find out not working on other shells. I have linux/bash at home, but now I'm trying on Solaris csh.
How would I write the following script for Solaris C shell?
----------
#!/bin/bash... (0 Replies)
Discussion started by: ajp7701
0 Replies
4. Shell Programming and Scripting
Hi All,
I am in Bash Shell and Running A script that contains Exit statement in that in last ( to return to sh shell after executing) But it is not coming to sh shell after the script is excuted.
How to return to sh shell from bash shell through a script. (8 Replies)
Discussion started by: saurabh84g
8 Replies
5. Shell Programming and Scripting
#!/bin/bash
declare -a dirs
index=0
for dir in `ls -d */`
do
dirs=$dir
echo $index. $dir
index=`expr $index + 1`
done
Its giving me distorted output:
c.sh: dirs=1/: No such file or directory
0. 1/
c.sh: dirs=11844/: No such file or directory
1. 11844/
c.sh: dirs=12819/: No such... (3 Replies)
Discussion started by: uunniixx
3 Replies
6. Shell Programming and Scripting
I do not claim to be an expert, but I have done things with scripts that whole teams of folks have said can not be done. Of course they should have said we do not have the intestinal fortitude to git-r-done.
I have been using UNIX actually HPUX since 1992. Unfortunately my old computer died and... (7 Replies)
Discussion started by: awk_sed_hello
7 Replies
7. Shell Programming and Scripting
hi i am having my code ,which call a funtion under a given condition in a case statement as below
error()
{
echo "Do you want to enter PO again(Y/N):"
read answer
case "$answer" in
Y) main
;;
y) main
;;
N) exit
;;
n) exit
;;
*) ;;
esac
}
if i run the prog with bash filename ,the... (4 Replies)
Discussion started by: mohanalakshmi
4 Replies
8. UNIX for Dummies Questions & Answers
Options::
A)$shell
B)echo $ bash
C)echo $ O
D)$ O (1 Reply)
Discussion started by: raghugowda
1 Replies
9. Shell Programming and Scripting
So I'm trying to pass certain json elements as env vars and use them later on in a script.
Sample json:
JSON='{
"Element1": "file-123456",
"Element2": "Name, of, company written in, a very weird way",
"Element3": "path/to/some/file.txt",
}'
(part of the) script:
for s... (5 Replies)
Discussion started by: da1
5 Replies
10. UNIX for Beginners Questions & Answers
In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ?
--- Post updated at 08:39 AM ---
in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies
LEARN ABOUT REDHAT
ppmdither
ppmdither(1) General Commands Manual ppmdither(1)
NAME
ppmdither - ordered dither for color images
SYNOPSIS
ppmdither [-dim power] [-red shades] [-green shades] [-blue shades] [ppmfile]
DESCRIPTION
Reads a portable pixmap as input, and applies dithering to it to reduce the number of colors used down to the specified number of shades
for each primary. The default number of shades is red=5, green=9, blue=5, for a total of 225 colors. To convert the image to a binary rgb
format suitable for color printers, use -red 2 -green 2 -blue 2.
OPTIONS
-dim power The size of the dithering matrix. The dithering matrix is a square whose dimension is a power of 2. power is that power of
2. The default is 4, for a 16 by 16 matrix.
-red shades The number of red shades to be used, including black; minimum of 2.
-green shades The number of green shades to be used, including black; minimum of 2.
-blue shades The number of blue shades to be used, including black; minimum of 2.
SEE ALSO
pnmdepth(1), ppmquant(1), ppm(5)
AUTHOR
Copyright (C) 1991 by Christos Zoulas.
14 July 1991 ppmdither(1)