projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6ee444c
)
utility commands
author
Don McMorris
<dmcmorris@esilibrary.com>
Tue, 5 Aug 2008 14:36:04 +0000 (14:36 +0000)
committer
Don McMorris
<dmcmorris@esilibrary.com>
Tue, 5 Aug 2008 14:36:04 +0000 (14:36 +0000)
notes.txt
[new file with mode: 0644]
patch
|
blob
diff --git a/notes.txt
b/notes.txt
new file mode 100644
(file)
index 0000000..
d8bbdc3
--- /dev/null
+++ b/
notes.txt
@@ -0,0
+1,5
@@
+# One-linerize an XML (so that it can be split with 'split -l', for example)
+perl -e 'my $line="";while(<>){chomp;$line.=$_;if($_ eq "</record>"){$line=~s/>\s+</></go;print("$line\n");$line="";}}'
+
+# Fix attribute values of \" that fall inside of \"'s.
+for i in a b c; do sed 's/"""/" "/g' < pines-marca$i > pines-marca$i.xml; done