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

Entries appended without a new line #19

Open
serialfuzzer opened this issue Jul 4, 2023 · 0 comments
Open

Entries appended without a new line #19

serialfuzzer opened this issue Jul 4, 2023 · 0 comments

Comments

@serialfuzzer
Copy link

serialfuzzer commented Jul 4, 2023

I have two files:
first.txt (Doesn't have an empty line in the end)

1
2
3

second.txt

1
2
3
4
5

cat second.txt | anew first.txt

cat first.txt

image

The solution might be to add a new line if previous character wasn't a new line before appending new entries to the file.

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