Category Archives: Uncategorized

Command Line Master

Wanted to post the craziest command line script I've used in a long time.  Used to convert names listed in XML tags in an EAC-CPF record to filenames to copy.

grep -h -o -P "<relationEntry>(.*?)</relationEntry>" *.xml
 | sed -e 's/<[a-zA-Z0-9\/\+]*>//g'
 | awk '{print tolower($0)}'
 | sed -e 's/[ ,. \(\) :]\+/\-/g'
 | sed -e 's/$/cr.xml/g'
 | while read x ; do cp /data/production/data/$x eac_data/. ; done

 

Leave a Comment

Filed under Uncategorized

Initial Setup

So, since I am scouring for ideas and reading many interesting papers, I figured I needed a place to collect this data.

Why not a Word document, etc?  Well, I wanted a place to update and add summaries from all my devices and to easily access them from any other device.  This seemed like the most appropriate method of collecting, sorting, and sharing these ideas.

Leave a Comment

Filed under Uncategorized