[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [RAQ3i] Determining site number for domain
- Subject: Re: [cobalt-users] [RAQ3i] Determining site number for domain
- From: Kris Dahl <krislists@xxxxxxxxxxxxx>
- Date: Wed Jul 5 12:47:38 2000
on 7/5/00 12:13 PM, Brad Rathbun at brad@xxxxxxxxxxxxxxx wrote:
> I'm trying to automate a script I use regularly. Is there an easy way to
> turn a FQDN into a site number from a bash script? Or maybe a file I could
> easily grep for it? So far, the best I've come up with is to do 'ls -l
> www.domain.com' and then do a find. Works, but seems a bit convoluted.
> Anyone have a better way to do this? A search of the 800+ articles in the
> archives that I went through yielded nothing useful. 8^(
ls -alF /home/sites/ | grep site27
Add a little regular expression action and you've got your answer.
There may be a cobalt script however to do this for you.
-k