Ветвление
- 3 ответа
- 0 вопросов
2
Вклад в тег
curl --range 0-2048 $url | file -
выведет информацию о заголовке файла, в т.ч. битрейт, например:/dev/stdin: Audio file with ID3 version 2.3.0, contains: MPEG ADTS, layer III, v2, 80 kbps, 22.05 kHz, JntStereo
for url in $(cat list_of_the_music); do
if curl --range 0-2048 $url | file - | grep 320 >/dev/null; then
wget $url
fi
done
$ telnet mail.whitequark.org 25 Trying 2002:59b3:f5e8::1:1... Connected to mail.whitequark.org. Escape character is '^]'. EHLO mannaz 220 mail.whitequark.org ESMTP Postfix (Debian/GNU) 250-mail.whitequark.org 250-PIPELINING 250-SIZE 100000000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN MAIL FROM:<spammer@we.do.the.abuse> 250 2.1.0 Ok RCPT TO:<whitequark@whitequark.org> 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> From: a.completely.unrelated@address This is a text full of marketing crap. . 250 2.0.0 Ok: queued as DA39E6F5CD QUIT 221 2.0.0 Bye Connection closed by foreign host.
Return-Path: <spammer@we.do.the.abuse> X-Original-To: whitequark@whitequark.org Delivered-To: whitequark@whitequark.org Received: by mail.whitequark.org (Postfix, from userid 107) id DA7AC38; Sun, 27 Feb 2011 22:11:18 +0300 (MSK) Received: from mannaz (unknown [IPv6:2002:59b3:f5e8:0:225:d3ff:fe78:6a75]) by mail.whitequark.org (Postfix) with ESMTP id DA39E6F5CD for <whitequark@whitequark.org>; Sun, 27 Feb 2011 22:09:49 +0300 (MSK) From: a.completely.unrelated@address Message-Id: <20110227191119.DA7AC38@mail.whitequark.org> Date: Sun, 27 Feb 2011 22:11:18 +0300 (MSK) To: undisclosed-recipients:; This is a text full of marketing crap.
# добавить новый пустой репозиторий в список remote $ git remote add archive $ARCHIVE_REPO_URL $ git push archive archive_branch $ git branch -d archive_branch # удалить ветку локально (необязательно) $ git push origin :archive_branch # удалить ветку в основном репозитории