What about,....


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers What about,....
# 1  
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  
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]
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #172
Difficulty: Easy
Red Hat is the largest contributor to the GNOME desktop environment.
True or False?

Featured Tech Videos