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 <[EMAIL PROTECTED]>
_______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils
_______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils
