[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sed - problem with function 'y' - transform
From: |
Ute Kavanaugh |
Subject: |
sed - problem with function 'y' - transform |
Date: |
Mon, 20 May 2002 08:54:55 -0700 |
Hello,
While trying to run SAM on an 11.11 HP-UX system we encountered
a problem with the GNU sed version 11.00 downloaded from
http://hpux.cs.utah.edu/hppd/hpux/Gnu/sed-3.02/.
I was able to reproduce the problem with a simple sed command
on HP-UX 11.00:
# uname -a
HP-UX hercules B.11.00 A 9000/893 399329241 two-user license
# pwd
/usr/bin
# what ./sed
sed:
$Revision: 80.5 $
# ./sed.gnu -V
GNU sed version 3.02
Copyright (C) 1998 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE,
to the extent permitted by law.
# cat /tmp/sed_test
one:two:three:four: :
blue:yellow:green:red: :
# cat /tmp/sed_test | ./sed -e's/:$//' -e'y/:/\n/'
one
two
three
four
blue
yellow
green
red
# cat /tmp/sed_test | ./sed.gnu -e's/:$//' -e'y/:/\n/'
onentwonthreenfourn
bluenyellowngreennredn
It seems that the GNU sed replaces the ':' with a 'n' only,
not recognizing '\n' as a newline character.
Kind regards
Ute
--
My hours are: Monday - Friday, 7 am - 1 pm PST (10 am - 4 pm EST).
_/\___
Ute Kavanaugh [/_/\_/\/]_
< //(o)\/ X \
Hewlett-Packard Company _/\\\__Y/ | \_]
North American Response Center \ \X___X/__/|
Roseville, California \____/ _/\__/
\/__/ ____
O |/`| |/`|
______ _/\_ ____ ____/\ /\__( } -( } ____
| _\ \ / /\ \ /^ _ \ /^ _ \ \ / / |,/| |,/| /^ _ \
|__L/ I ( ) V (_L V (_\_\ ( ) /I |/`| |/`| / (_\_\
|^ __/| \/ |___ \| ___]\ V / | |\_|___|\_|___[ ___]
| || \A__/ A L) I (_/ / \ / I |^ |^ | (_/ /
.oO|__|| \\____/o\____/o\____/ Y o\_|\_____|\_____|\____/Oo.
| |
\ | e-mail: address@hidden
\|
tel: (916)-785-0106
fax: (916)-748-1409
*************************************************************************
Don't forget HP's Electronic Support Center!
http://itrc.hp.com
Place new calls to the Response Center, review existing calls and update
your call with important information. You can even search HP's
extensive
Electronic Support Database for solutions.
HP strives to improve customer loyalty through customer support. It is
our goal to be your support services provider of choice. Please forward
any comments or suggestions to my manager at the following e-mail
address: address@hidden
Customer Support Web Sites
ITRC IT Resource Center - http://itrc.hp.com
Enter a callback on your case - http://itrc.hp.com/swcl/bin/doc.pl
HP Customer Education -
http://www.hp.com/education/usacanada.html
HPUX Patches - ftp://i3107ffs.external.hp.com
Online Documentation - http://www.docs.hp.com/
HP Software - http://www.software.hp.com/
- sed - problem with function 'y' - transform,
Ute Kavanaugh <=