root/other-projects/is-sheet-music-encore/trunk/java-gen-corpus/metadata-formater.sh @ 33017

Revision 33017, 288 bytes (checked in by cpb16, 6 months ago)

Renamed Downloaders as .sh; Completed a metadata formater script; Creating a metadata extractor java program; Have found error in code for downloading records. Commandline thinks that some ids are directories, need to correct that

  • Property svn:executable set to *
Line 
1#!/bin/bash
2#Formats every textfile in download-meta folder
3for file in download-meta/*txt;
4do
5    echo "Formating $file"
6    xmllint --format $file > $file.tmp && mv $file.tmp $file
7done
8
9#References: https://unix.stackexchange.com/questions/50198/reformatting-a-large-number-of-xml-files
10
11
12
13
Note: See TracBrowser for help on using the browser.