![]() |
|
|
google unix.com
|
|||||||
| Forums | Registreer | Forum Regels | Links | Albums | Veelgestelde vragen | Ledenlijst | Kalender | Zoeken | Today's Posts | Markeer forums als gelezen |
| UNIX for Advanced & Expert Gebruikers Expert-to-Expert. Hier geavanceerde UNIX-, UNIX-commando's, Linux, Operating Systems, System Administration, programmering, Shell, Shell scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
Meer UNIX en Linux Forum Onderwerpen Misschien vindt u Helpful
|
||||
| Draad | Thread Starter | Forum | Antwoorden | Last Post |
| Bourne shell script - log voor gebruikers loggin in-en uitschakelen | noodlesoup | Programmeren en Shell Scripting | 14 | 09-08-2006 11:30 PM |
| Bourne: Hoe zich te beroepen op een alias vanuit een shell script | techshots | Programmeren en Shell Scripting | 2 | 06-04-2006 01:38 |
| cd uit een Bourne shell script - Please Help | fawqati | Programmeren en Shell Scripting | 10 | 05-25-2006 04:26 |
| Bourne shell script | dmhonor914 | UNIX voor Dummies Questions & Answers | 2 | 12-10-2003 12:25 |
| Bourne shell script | psrinivas | Programmeren en Shell Scripting | 2 | 12-06-2001 03:38 PM |
|
|
LinkBack | Thread Tools | Zoeken in deze Thread | Rate Thread | Display Modes |
|
||||
|
Ik heb deze opdracht .. en ik gek dit script, maar er is iets mis mee .. als iemand mij kan vertellen .. watz hand ... Ik zou het waarderen .. thnx op voorhand .. Code:
count=1
val=$2
op=$1
ans=0
if [ $op = "-e" -o $op = "-o" ]
then
if [ $op = "-e" ]
then
while [ $count -le $val ]
do
ans=`expr $count % 2`
if [ $ans -eq 0 ]
then
echo "$count \c "
count=`expr $count + 1`
fi
done
elif [ $op = "-o" ]
then
while [ $count -le $val ]
do
ans=`expr $count % 2`
if [ $ans -ne 0 ]
then
echo "$count \c "
count=`expr $count + 1`
fi
done
fi
else
while [ $count -le $val ]
do
echo "$count \c "
count=`expr $count + 1`
done
fi
ThnX weer ![]() code tags toegevoegd om de leesbaarheid - oombera Laatst gewijzigd door oombera; op 02.20.2004 11:51.. |
| Bladwijzers |
| Labels |
| linux |
| Thread Tools | Zoeken in deze Thread |
| Display Modes | Beoordeel deze draad |
|
|