projects
/
migration-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
"mig" tool
[migration-tools.git]
/
text
/
join_lines.one-off.001
diff --git a/text/join_lines.one-off.001
b/text/join_lines.one-off.001
new file mode 100755
(executable)
index 0000000..
758beb1
--- /dev/null
+++ b/
text/join_lines.one-off.001
@@ -0,0
+1,6
@@
+#!/usr/bin/perl -w
+# so we're wanting our lines to end in <13><10>, ideally, and this is catching lines where isolated <10>'s cause a premature linebreak
+while (my $line = <>) {
+ $line =~ s/([^\x0D])\x0A$/$1/;
+ print $line;
+}