On Wed, May 23, 2012 at 03:28:56PM -0400, Ross Singer wrote: > Wow, this is pretty cool. > > Kevin, do you have examples of the output? > > Does it work for bulk files? > > I mean, I could just try this on my Ubuntu machine, but it's all the way downstairs... My OS lists it as `data` $ cd $ ls dev id_rsa.pub laflin marc orthanc ssh updating $ ftp http://drupal.org/files/issues/5_records_utf8.mrc_.txt Trying 140.211.166.6... Requesting http://drupal.org/files/issues/5_records_utf8.mrc_.txt 100% |**************************************************************************************************************************************************| 5965 00:00 5965 bytes received in 0.00 seconds (1.56 MB/s) $ ls 5_records_utf8.mrc_.txt id_rsa.pub marc ssh dev laflin orthanc updating $ mkdir test $ mv 5_records_utf8.mrc_.txt test/ $ cd test/ $ mv 5_records_utf8.mrc_.txt 5_records_utf8.mrc $ ls 5_records_utf8.mrc $ file 5_records_utf8.mrc 5_records_utf8.mrc: data $ ls 5_records_utf8.mrc $ ls -al total 32 drwxr-xr-x 2 kayiwa kayiwa 512 May 23 14:34 . drwxr-xr-x 10 kayiwa kayiwa 512 May 23 14:34 .. -rw-r--r-- 1 kayiwa kayiwa 5965 May 23 14:33 5_records_utf8.mrc $ uname -a OpenBSD orthanc.lib.uic.edu 5.1 GENERIC.MP#256 i386 ./fxk > > -Ross. > > On May 23, 2012, at 3:14 PM, Ford, Kevin wrote: > > > I finally had occasion today (read: remembered) to see if the *nix "file" command would recognize a MARC record file. I haven't tested extensively, but it did identify the file as MARC21 Bibliographic record. It also correctly identified a MARC21 Authority Record. I'm running the most recent version of Ubuntu (12.04 - precise pangolin). > > > > I write because the inclusion of a "file" MARC21 specification rule in the magic.db stems from a Code4lib exchange that started in March 2011 [1] (it ends in April if you want to go crawling for the entire thread). > > > > Rgds, > > > > Kevin > > > > [1] https://listserv.nd.edu/cgi-bin/wa?A2=ind1103&L=CODE4LIB&T=0&F=&S=&P=112728 > > > > -- > > Kevin Ford > > Network Development and MARC Standards Office > > Library of Congress > > Washington, DC > -- If builders built buildings the way programmers wrote programs, then the first woodpecker to come along would destroy civilization.