Garayed.com  

Go Back   Garayed.com > Linux
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 01-09-2007, 11:43 PM
Kees Theunissen
 
Posts: n/a
Default Re: Bash 'trick' needed.

Kees Theunissen wrote:
> Vilmos Soti wrote:
>> cat ? ?? ??? ... > ../accumulation
>> cd ..
>> rm -rf empty
>>
>> This also has the added benefit of keeping the order of downloads.

>
>
> No, it doesn't keep the order. The *-expansion will be sorted in
> alphabetical/ascii order; _not_ in numerical order.


Sorry. I didn't notice that you used "? ?? ???" instead of an "*".
But here you need some knowledge about the length of the url-list.
If you use "? ?? ???" in the script you'll get errors if there
were less than 100 urls in the list.

Formating the numbers to strings like "0001" "0002" will make
the script independant of the actual number of urls (as
long as the number can be represented with the chosen string
length).


Regards,

Kees.

--
Kees Theunissen.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 01-09-2007, 11:45 PM
John Hasler
 
Posts: n/a
Default Re: Bash 'trick' needed.

Vilmos Soti writes:
> That's just an ellipse.


No. It's an ellipsis. An ellipse is a closed conic section.
--
John Hasler
john@dhh.gt.org
Dancing Horse Hill
Elmwood, WI USA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:41 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.