[ale] Hey, deb-heads!

Geoffrey esoteric at 3times25.net
Tue Jul 2 09:06:01 EDT 2002




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...)?


---
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.






More information about the Ale mailing list