![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| one question for bash shell script | zx1106 | Shell Programming and Scripting | 9 | 03-10-2008 12:40 AM |
| Bash shell script | outthere_3 | UNIX for Dummies Questions & Answers | 2 | 01-31-2008 08:13 PM |
| bash shell script and ms-dos | space13 | Shell Programming and Scripting | 1 | 11-10-2006 07:06 PM |
| need help with bash shell script | vmtailor | UNIX for Dummies Questions & Answers | 2 | 03-03-2005 04:30 PM |
| bash shell script | norsk hedensk | Shell Programming and Scripting | 4 | 08-02-2003 08:27 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
BASH Shell Script Help -HELP!
Im a newbie to shell scripting - in fact you could even call me a Linux newbie, well, mabye not i started with CYGWIN a year ago... but i only just recently wiped the Windoze partition off my drive.
-Anyways, heres the script i have a problem with: Code:
#!/bin/bash
#
#PeMPcoder
function invertconsole () {
echo -e "\033[7m"
}
function defconsole () {
echo -e "\033[0m"
}
function setinput () {
echo -e "file to encode:"
invertconsole
read file2encode
defconsole
}
function setoutput () {
echo -e "output PMP file(default is $file2encode.PMP)"
invertconsole
read pmpout
defconsole
}
function sudogui () {
while [ ! -n $inputfilefound ]
do
if test -n $file2encode -a "$file2encode" != ""
inputfilefound="yesitsdeclared"
else <--- Problem 'round here
setinput
fi
done
echo "succesful"
}
sudogui
exit
Last edited by flamethrower0; 12-30-2006 at 12:54 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|