Script Problem

Post Reply
Message
Author
gruenertag

Script Problem

#1 Post by gruenertag »

Hallo kann mir wer helfen:
Haben folgendes Script in der Schule bekommen und sollten das erklären;)
Allerdings habe ich damit so meine Probleme:

HIer mal das Script:

#!/bin/csh -f
set ok=0
if ($#argv==0)then
echo"parameter missing-please specify:"
set input = $<
set ok=1
endif
else if($#argv==1)then
echo"allright-input ok-your was $argv (1)"
set input=$#argv(1)
set ok=1
else if ($#argv>1)then
echo"too much parameters"
endif

if($ok==1)then
echo"you have specified the following parameter:$input"
endif

exit(0)



Hehe das isses ;) Danke schonmal für jede Hilfe ;)

PDA

#2 Post by PDA »

Und du willst uns nicht sagen was du für Probleme hast, nicht wahr!
Cleveres Kerlchen!

Hilfe hier
und hier
und hier auch

Post Reply