| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
On 19May2016 12:46, Ufuk Yildirim <[email protected]> wrote:
>With small test files, awk version Davide Brini suggested seems to work perfectly. Thank you so much.
>
>sed version, on the other hand, is not working as I wanted. All it does is put all the lines from the txt files in a file in order, which is problematic since some students appear twice.
>
>ps. I am currently on Mac. No idea if that changes anything. Will try the sed version again on linux, if that makes any difference.
The Mac will have BSD sed; most Linux distros install GNU sed, which has some
extra facilities. You can install GNU sed on your Mac by using a MacPorts or
HomeBrew.
Personally, although I install lots of extra tools including GNU sed, I try to
make my sed scripts portable i.e. to also work with the system sed.
Cheers,
Cameron Simpson <[email protected]>