Hi guys,
I tried to running some sed command in my linux something like [sed '/|$/!N;s/\n//'], but it doesn't work same as my unix sed.
I assume my linux has different sed format, I typed in my linux : "man sed"
and it said :
So, the question is how many sed format do we have and how to tell the difference ? and what sed command shoud I use to have the same result as in unix sed [sed '/|$/!N;s/\n//'] ?
Thx guys,
I tried to running some sed command in my linux something like [sed '/|$/!N;s/\n//'], but it doesn't work same as my unix sed.
I assume my linux has different sed format, I typed in my linux : "man sed"
and it said :
Code:
NAME
sed - manual page for sed version 4.1.3
...
GNU sed also supports some special 2-address forms:
...
So, the question is how many sed format do we have and how to tell the difference ? and what sed command shoud I use to have the same result as in unix sed [sed '/|$/!N;s/\n//'] ?
Thx guys,