ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexey I. Froloff" <raorn@immo.ru>
To: community@altlinux.ru
Subject: Re: [Comm][JT] .bin vs. .iso
Date: Thu, 25 Dec 2003 08:44:50 +0300
Message-ID: <20031225054450.GV27085@inferno.immo> (raw)
In-Reply-To: <20031224181158.GB3860@wrars-comp.wrarsdomain>

[-- Attachment #1: Type: text/plain, Size: 620 bytes --]

* Andrey Rahmatullin <wrar@altlinux.ru> [031224 21:19]:
> > Ой, это надо C вспоминать, набирать, компилировать, бага
> > править...  zsh+textutils - лучший инструмент для такой разовой
> > работы ;-)
> Поконкретнее плиз ;-)

#!/bin/zsh

rm -f $1.iso
for (( i = 0; i < NNNNN; i += 1)) do
  let "offset = (i*2352) + 16 + 1"
  tail -c +$offset $1.bin | head -c 2048 >> $1.iso
done

NNNNN посчитал руками. Ни разу не оптимизировано, написано на
коленке ;-)

for и let - zsh-speceific

-- 
Regards, Sir Raorn.
-------------------
> Думаю, что Дима перепутал mhz и imz :-)
Нет, я вообще другое имел в виду.
		-- ldv in devel@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2003-12-25  5:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-24  5:31 [Comm] " Alexey I. Froloff
2003-12-24  5:36 ` Alexey I. Froloff
2003-12-24 19:02   ` [Comm] " Michael Shigorin
2003-12-25  5:41     ` Alexey I. Froloff
2003-12-24  8:45 ` [Comm] " Andy Gorev
2003-12-24  8:58   ` Alexey I. Froloff
2003-12-24 18:11     ` [Comm][JT] " Andrey Rahmatullin
2003-12-25  5:44       ` Alexey I. Froloff [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031225054450.GV27085@inferno.immo \
    --to=raorn@immo.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git