[ale] Hey, deb-heads!
James P. Kinney III
jkinney at localnetsolutions.com
Tue Jul 2 09:57:55 EDT 2002
I think there is a misreading of the ls command. It is ls -1 (one) not
l(ell). That will format the output to be a single column of file names.
Processing the indiviual fields in the j loop is what is needed. It will
make a symlink from each real file to a common location for each name
found in each iteration of the outer loop.
On Tue, 2002-07-02 at 09:06, Geoffrey wrote:
>
>
> James P. Kinney III wrote:
> > Hmm. I've double indices before in bash. What's not running, the second
> > for loop or the `ls -1`?
>
> I think the issue is `ls -l` is going to give you more then just the
> file names, which is what I think you want in this case.
>
> Also, the for loop will process each 'field' in the 'ls -l' separately.
>
> >
> > On Mon, 2002-07-01 at 23:39, Jeff Hubbs wrote:
> >
> >>Jim -
> >>
> >>Looks like that for j in `ls -1` line isn't gonna fly - I assume you
> >>want the shell to evaluate that command but it's not...
> >>
> >>- Jeff
> >>
> >>On Mon, 2002-07-01 at 22:57, James P. Kinney III wrote:
> >>
> >>>Use a loopback mount to mount them all someplace like /tmp/cd1,
> >>>/tmp/cd2, etc.
> >>>
> >>>#!/bin/bash
> >>>
> >>>export ftp=<path to ftp>
> >>>for i in 1 2 3
> >>>do
> >>>cd /tmp/cd$i
> >>>for j in `ls -1`
> >>>do
> >>>ln -s /tmp/cd$i/$j $ftp/$j
> >>>done
> >>>done
> >>>
> >>>
> >>>
> >>>
> >>>On Mon, 2002-07-01 at 22:43, Jeff Hubbs wrote:
> >>>
> >>>>I've downloaded the three Debian Potato CD ISOs to my file server and
> >>>>I'm going to try to do an install using the contents of those ISOs as
> >>>>the source via FTP.
> >>>>
> >>>>My question is, how do I combine the contents of the CDs in my FTP
> >>>>filespace so as to make the whole schmeer resemble the Debian mirrors on
> >>>>the Internet? I'm used to doing this in Red-Hat-land but the layout
> >>>>here is quite different.
> >>>>
> >>>>- Jeff
> >>>>
> >>>>
> >>>>
> >>>>---
> >>>>This message has been sent through the ALE general discussion list.
> >>>>See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
> >>>>sent to listmaster at ale dot org.
> >>>>
> >>>--
> >>>James P. Kinney III \Changing the mobile computing world/
> >>>President and CEO \ one Linux user /
> >>>Local Net Solutions,LLC \ at a time. /
> >>>770-493-8244 \.___________________________./
> >>>
> >>>GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
> >>><jkinney at localnetsolutions.com>
> >>>Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
> >>>
> >>>
> >>>
>
>
> --
> Until later: Geoffrey esoteric at 3times25.net
>
> I didn't have to buy my radio from a specific company to listen
> to FM, why doesn't that apply to the Internet (anymore...)?
--
James P. Kinney III \Changing the mobile computing world/
President and CEO \ one Linux user /
Local Net Solutions,LLC \ at a time. /
770-493-8244 \.___________________________./
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
This is a digitally signed message part
More information about the Ale
mailing list