Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last field in record not printed #39

Open
thorstenkampe opened this issue Feb 7, 2016 · 0 comments
Open

Last field in record not printed #39

thorstenkampe opened this issue Feb 7, 2016 · 0 comments

Comments

@thorstenkampe
Copy link

Mawk 1.3.4 20131226 (Cygwin)

mawk '{printf "%s %s\n", $2, $1}' TEST.txt
 A1
 B1

The next statement shows correct output and content of TEXT.txt:

mawk '{printf "%s %s\n", $1, $2}' TEST.txt
A1 A2
B1 B2

This happens only with Windows line endings. Gawk doesn't have the problem:

gawk '{printf "%s %s\n", $2, $1}' TEST.txt
A2 A1
B2 B1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant