From my script
#!/bin/bash
echo "Which of these does not belong in the group?"; \
select choice in Mercedes Audi Chevrolet Audi Porsche BMW Volkswagen; do
if ]; then
echo "Correct! Chevrolet is not a German marque."; break; fi
echo "Errr...no. Try again."
doneI'm... (3 Replies)
Hi Im' trying to output a list of files then make the list files as choices, need someone to give me hand.
so far here is what i got.. a bit messy
#!/bin/sh
menu_str=`ls -1 file*`
cnt=0
for i in $menu_str
do
menu_item=${i}
cnt=$(($cnt+1))
echo $cnt
echo ${menu_item
}
done
... (3 Replies)
I need clarification on the following:
1. Which file system is supported by all distros?
2. Which file system is best to be used for handling large volumes of data, which also satisfies 1?
Please notify if a thread addressing these issues exists.
Thnx (2 Replies)
WebService::CIA::Source(3pm) User Contributed Perl Documentation WebService::CIA::Source(3pm)NAME
WebService::CIA::Source - A base class for WebService::CIA sources
SYNOPSIS
use WebService::CIA::Source;
my $source = WebService::CIA::Source->new();
DESCRIPTION
WebService::CIA::Source is a base class for WebService::CIA sources, such as WebService::CIA::Source::DBM and WebService::CIA::Source::Web.
It could be used as a source in its own right, but it won't get you very far.
METHODS
"new()"
This method creates a new WebService::CIA::Source object. It takes no arguments.
"value($country_code, $field)"
Retrieve a value. Always returns "undef".
"all($country_code)"
Retrieve all fields and values. Always returns an empty hashref.
AUTHOR
Ian Malpass (ian-cpan@indecorous.com)
COPYRIGHT
Copyright 2003-2007, Ian Malpass
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The CIA World Factbook's copyright information page (<https://www.cia.gov/library/publications/the-world-factbook/docs/contributor_copy-
right.html>) states:
The Factbook is in the public domain. Accordingly, it may be copied
freely without permission of the Central Intelligence Agency (CIA).
SEE ALSO
WebService::CIA, WebService::CIA::Parser, WebService::CIA::Source::DBM, WebService::CIA::Source::Web
perl v5.8.8 2008-02-04 WebService::CIA::Source(3pm)