Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: grep, sed, cut , sh, awk scripting


  • Subject: Re: lug-bg: grep, sed, cut , sh, awk scripting
  • From: valery@xxxxxxxxxx (Valery Dachev)
  • Date: Sun, 16 Sep 2001 15:12:34 +0300 (EEST)



On Sun, 16 Sep 2001, George Danchev wrote:

> az pak imam edin "slab" vupros :
> imam txt file sys slednoto sydyrzhanie:
> /bla/file.tar.gz
> /fgfg/dfdf.tar.gz
> ..............
>
> kak da zacyklq wget da iztegli tezi files edin po edin ot
> ftp://ftp.serv.org/path/to/files
> demek da my podavam posledovatelno URL-tata:
> ftp://ftp.serv.org/path/to/files/bla/file.tar.gz
> ftp://ftp.serv.org/path/to/files/fgfg/dfdf.tar.gz
> ..................................
> pozvoleni programni sredstva sa goreizbroenite

Wariant 1:
        ---------
        files=`cat files.txt`
        for file in $files; do
                wget ftp://ftp.serv.org/path/to/files$i
        done
        ---------
        Towa ako nqmash interwali
Wariant 2:
        ---
        cat files.txt | \
        sed -e 's/^/ftp:\/\/ftp.serv.org\/path\/to\/files/' > \
        files.out
        ---
        Towa generira file files.out, w nachaloto na wseki red na kojto se
        syrydva prefix-a, kojto dade. Problemyt e, che trqbwa wseki file da
        ti e izbroen na otdelen red.
        "Movesh da naprawish wget -i <filename>"
Wariant 3:
        Ako towa e HTML, w <HEAD> chastta dobawi edno
        <BASE href="ftp://ftp.serv.org/path/to/files/";>
        I naprawi "wget -i index.html", kato weroqtno shte trqbwa da
        izpolzwash -R i -A.

. . . . . . . . .			      Best regards, Valery Dachev
.........................................................................
: User ID      : Valery Dachev <valery@xxxxxxxxxx>                      :
: Homepage     : http://valery.zonebg.com/                              :
: PGP Key ID   : 1024D/1C4C9712 (DSA)                                   :
: Fingerprint  : C451 0CC8 8EB4 655C D7C8  9D7F DCE9 C14E 1C4C 9712     :
:..............:........................................................:
: Organization : Bulgarian GNU/Linux Society <info@xxxxxxxxxxxxxxxx>    :
: Homepage     : http://linux.zonebg.com                                :
:..............:........................................................:

===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora



 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.