From: Sergey Vlasov <vsu@altlinux.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Переимненование файлов.
Date: Thu, 26 Oct 2006 22:07:07 +0400
Message-ID: <20061026180707.GA9000@procyon.home> (raw)
In-Reply-To: <4540F375.3090002@bungarus.info>
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
On Thu, Oct 26, 2006 at 08:42:13PM +0300, Maxim Tyurin wrote:
> Valery V. Inozemtsev пишет:
> >> За скрипт спасибо. А как можно сделать такое:
> >> все файлы в каталоге имеют формат eps, т.е. рассширение .ps. Нужно их
> >> преобразовать в иной формат, например в .svm. Преобразование одного файла я
> >> делал так:
> >> $ pstoedit -f svm Workstation.ps Workstation.svm
> >> Но их очень много и каждый ручками тяжеловато преобразовывать. Можно такое
> >> сделаить автоматом?
> >>
> >
> > $ for f in *.ps; do pstoedit -f svm $f `echo $f | sed 's,\.ps,.svm,'`; done
> >
> А зачем тут sed?
>
> for f in *.ps; do pstoedit -f svm $f ${f%%ps}svm; done
for f in *.ps; do pstoedit -f svm "$f" "${f%%ps}svm"; done
Иначе на именах с пробелами всё развалится.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-10-26 18:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-26 15:46 Шенцев Алексей Владимирович
2006-10-26 15:54 ` Шенцев Алексей Владимирович
2006-10-26 15:59 ` Valery V. Inozemtsev
2006-10-26 16:11 ` Шенцев Алексей Владимирович
2006-10-26 16:22 ` Valery V. Inozemtsev
2006-10-26 17:42 ` Maxim Tyurin
2006-10-26 18:07 ` Sergey Vlasov [this message]
2006-10-26 18:27 ` [Comm] Переимненование файлов. [JT] Maxim Tyurin
2006-10-26 20:33 ` Michael Shigorin
2006-10-27 5:19 ` Шенцев Алексей Владимирович
2006-10-27 6:26 ` Evgenii Terechkov
2006-10-27 7:37 ` Maxim Tyurin
2006-10-27 8:03 ` Шенцев Алексей Владимирович
2006-10-27 9:03 ` Vladimir A. Svyatoshenko
2006-10-27 9:03 ` Шенцев Алексей Владимирович
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=20061026180707.GA9000@procyon.home \
--to=vsu@altlinux.ru \
--cc=community@lists.altlinux.org \
/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