What about,....


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers What about,....
# 1  
Old 03-29-2001
Neo,
I am not familar with wrapper scripts.
I was thinking a longer way of doing things would be do write a bunch of if, elifs and write something like if
if [ "$1" -eq January ]
then
cal 1 2001
fi

for getting january 2001, then fill in the rest through to december.
What do you say is this an effective way or, should I try something else.

Thanks again,

theA
# 2  
Old 03-29-2001
what about writing a script in perl. Smilie
usage: scriptname month year

#!/usr/bin/perl

%Month=("Jan" => 1, "January" => 1, "Feb" => 2, "March" => 3); #and so on.. Smilie
system("cal $Month{$ARGV[0]} $ARGV[1]");





[Edited by mib on 03-29-2001 at 02:18 PM]
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question