<div dir="ltr"><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial">I am looking at a proper exporter, that instead of the below result:</pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">$ catmandu convert MARC --fix 'retain_field(_id)' to YAML < Documents/camel.usmarc</tt></pre><p style="margin:0px 0px 20px;padding:0px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;color:rgb(68,68,68);font-family:"helvetica neue",helvetica,arial,sans-serif;line-height:22px;background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial">You will see:</p><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">--- </tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">_id: 'fol05731351 ' </tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">... </tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">--- </tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">_id: 'fol05754809 '</tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">... </tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">--- </tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">_id: 'fol05843555 '</tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">...</tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">---</tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">_id: 'fol05843579 '</tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">...</tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif"><br></tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">i am looking at a fix that will allow me to get the following as a result:</tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial">a plain txt file, that will have all values, row by row:  <br></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">fol05731351</tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">fol05754809</tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">fol05843555</tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">fol05843579</tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial">and for a repeatable tag something like below:</pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;font-family:monospace,sans-serif;background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif">$ catmandu convert MARC --fix 'retain_field(300[0-#])' to YAML < Documents/camel.usmarc</tt></pre></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial">Thank you again</pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif"><br></tt></pre><pre style="margin-top:0px;margin-bottom:0px;padding:10px;border:0px;outline:0px;font-size:15px;vertical-align:baseline;white-space:pre-line;word-wrap:break-word;font-stretch:normal;line-height:22px;font-family:monospace,sans-serif;color:rgb(68,68,68);background-image:initial;background-size:initial;background-origin:initial;background-clip:initial;background-position:initial;background-repeat:initial"><tt style="font-stretch:normal;font-family:monospace,sans-serif"><br></tt></pre></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 10, 2016 at 5:51 PM, Johann Rolschewski <span dir="ltr"><<a href="mailto:rolschewski@gmail.com" target="_blank">rolschewski@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
>  catmandu convert --fix 'retain(_id)' MARC to Text < file_0.mrc<br>
><br>
> gives me the result i need,<br>
<br>
</span>this doesn't work, please provide a working example.<br>
<span class=""><br>
> How one can have as a txt output all occurrences (values found) of say<br>
> the 001 tag, or even better, a repeatable tag/subfield, in a row by row<br>
> txt file.<br>
<br>
</span>See<br>
<a href="https://librecatproject.wordpress.com/2014/12/11/day-9-processing-marc-with-catmandu/" rel="noreferrer" target="_blank">https://librecatproject.<wbr>wordpress.com/2014/12/11/day-<wbr>9-processing-marc-with-<wbr>catmandu/</a><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Johann<br>
</font></span></blockquote></div><br></div>