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)
Dpkg::Vendor(3) libdpkg-perl Dpkg::Vendor(3)NAME
Dpkg::Vendor - get access to some vendor specific information
DESCRIPTION
The files in /etc/dpkg/origins/ can provide information about various vendors who are providing Debian packages. Currently those files look
like this:
Vendor: Debian
Vendor-URL: http://www.debian.org/
Bugs: debbugs://bugs.debian.org
If the vendor derives from another vendor, the file should document the relationship by listing the base distribution in the Parent field:
Parent: Debian
The file should be named according to the vendor name.
FUNCTIONS
$fields = Dpkg::Vendor::get_vendor_info($name)
Returns a Dpkg::Control object with the information parsed from the corresponding vendor file in /etc/dpkg/origins/. If $name is
omitted, it will use /etc/dpkg/origins/default which is supposed to be a symlink to the vendor of the currently installed operating
system. Returns undef if there's no file for the given vendor.
$name = Dpkg::Vendor::get_vendor_file($name)
Check if there's a file for the given vendor and returns its name.
$name = Dpkg::Vendor::get_current_vendor()
Returns the name of the current vendor. If DEB_VENDOR is set, it uses that first, otherwise it falls back to parsing
/etc/dpkg/origins/default. If that file doesn't exist, it returns undef.
$object = Dpkg::Vendor::get_vendor_object($name)
Return the Dpkg::Vendor::* object of the corresponding vendor. If $name is omitted, return the object of the current vendor. If no
vendor can be identified, then return the Dpkg::Vendor::Default object.
Dpkg::Vendor::run_vendor_hook($hookid, @params)
Run a hook implemented by the current vendor object.
1.16.15 2014-06-05 Dpkg::Vendor(3)