bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Additional feature for the seq command


From: Axel Liljencrantz
Subject: Additional feature for the seq command
Date: Thu, 28 Apr 2005 18:41:45 +0200 (MEST)

Hello!

It would be nice if one could use the seq command to specify a
sequence of characters, as well as a sequence of numbers.

Example:

Writing

seq a 3 h

should output

a
d
g



I have modified seq to work this way. My updated seq uses isalpha to
check if the user requested a character sequence, otherwise it will
use behave exactly like regular seq. This new seq can handle upper
case and lower case, and validates all arguments.

I have included a diff for the files src/seq.c and doc/coreutils.text
to update both the sourcecode and the documentation for seq. The
update also contains a small spelling correction for the
documentation (Synopses->Synopsis).

This diff is for coreutils 5.0.


--
Axel Liljencrantz

Attachment: seq.c.diff
Description: Text document

Attachment: coreutils.text.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]