bug-coreutils
[Top][All Lists]
Advanced

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

Re: matrix text editing


From: Andrew D Jewell
Subject: Re: matrix text editing
Date: Wed, 2 Apr 2003 07:34:35 -0500

How about two line script :

csplit foo /delimiter/ '{*}'
paste -s xx* | perl -pe 's/^delimiter\t//'

Having to tack on the perl part seems inelegant.
Looks to me like csplit really needs an option to omit the delimiters from the output. Look for it at alexautils.sourceforge.net real soon now.

adj


At 11:33 AM +0900 4/2/03, Tsuyoshi Takada wrote:
Hi,

I want to edit text file like the following:

-------------------
a
b
delimiter
c
d
delimiter
e
f
-------------------

to

-------------------
a       b
c       d
e       f
-------------------

"csplit" of textutils does not seem to support such a editing.
Is there any way to realize this with coreutils or any other Linux
commands?

Regards,

--
Tsuyoshi Takada <address@hidden>




_______________________________________________
Bug-coreutils mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-coreutils





reply via email to

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