From: Vassil Nikolov <vnikolov@pobox.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to [write sequentially numbered lines]
Date: Sat, 10 Oct 2009 16:55:31 -0400 [thread overview]
Message-ID: <snzd44v3r5o.fsf@luna.vassil.nikolov.name> (raw)
In-Reply-To: afa23e97-b571-4fa5-8f53-3c211ed308bb@k19g2000yqc.googlegroups.com
On Sat, 10 Oct 2009 11:33:17 -0700 (PDT), Decebal <cldwesterhof@gmail.com> said:
> ...
> local i
> local length=${#1}
> for i in $(seq ${1}) ; do
> printf " Regel %${length}d voor de test\n" ${i}
> done >${2}
translates to
emacs -Q -batch -eval '
(dotimes (i '"${1}"')
(princ (format " Regel %'"${#1}"'d voor de test\n" (1+ i))))
' > "${2}"
---Vassil.
next prev parent reply other threads:[~2009-10-10 20:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-10 18:33 How to Decebal
2009-10-10 20:06 ` Andreas Röhler
2009-10-10 20:55 ` Vassil Nikolov [this message]
2009-10-10 21:20 ` How to [write sequentially numbered lines] Decebal
[not found] ` <mailman.8511.1255205222.2239.help-gnu-emacs@gnu.org>
2009-10-10 20:57 ` How to Decebal
2009-10-11 1:41 ` Decebal
2009-10-11 8:11 ` Andreas Röhler
[not found] ` <mailman.8527.1255248737.2239.help-gnu-emacs@gnu.org>
2009-10-11 16:20 ` Decebal
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=snzd44v3r5o.fsf@luna.vassil.nikolov.name \
--to=vnikolov@pobox.com \
--cc=help-gnu-emacs@gnu.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.