[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
is there a bug in tac when it interpret REGEXP for separator
From: |
winfriedundheike |
Subject: |
is there a bug in tac when it interpret REGEXP for separator |
Date: |
Mon, 17 May 2004 10:10:04 +0200 |
Hallo,
I want to turn round a datastream with tac, not every line but every
sign.
Now my tests:
address@hidden:~/tmp> echo -e "abbc\ndef" | tac -rs \.
fe
address@hidden:~/tmp>
this ist wrong.
address@hidden:~/tmp> echo -e "abbc\ndef" | tac -rs \[^.\]
fed
address@hidden:~/tmp>
this is right but I dont understand how tac interpret the REGEXP because
^ in grep is to negate . When tac the ^ to interpret as linestart then
must this also work:
address@hidden:~/tmp> echo -e "abbc\ndef" | tac -rs \[.^\]
abbc
def
address@hidden:~/tmp>
it dont work.
address@hidden:~/tmp> tac --version
tac (textutils) 2.1
Written by Jay Lepreau and David MacKenzie.
greetings
Winfried Münch
mailto: address@hidden
- is there a bug in tac when it interpret REGEXP for separator,
winfriedundheike <=