Hallo,

I want to turn round a datastream with tac, not every line but every
sign.

Now my tests:

[EMAIL PROTECTED]:~/tmp> echo -e "abbc\ndef" | tac -rs \.

fe
[EMAIL PROTECTED]:~/tmp>
this ist wrong.


[EMAIL PROTECTED]:~/tmp> echo -e "abbc\ndef" | tac -rs \[^.\]

fed
[EMAIL PROTECTED]:~/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:

[EMAIL PROTECTED]:~/tmp> echo -e "abbc\ndef" | tac -rs \[.^\]
abbc
def
[EMAIL PROTECTED]:~/tmp>
it dont work.

[EMAIL PROTECTED]:~/tmp> tac --version
tac (textutils) 2.1
Written by Jay Lepreau and David MacKenzie.


greetings

Winfried Münch

mailto: [EMAIL PROTECTED]





_______________________________________________
Bug-textutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-textutils

Reply via email to