ponysay/pages/ponysay/Metadata-pasting.html
Mattias Andrée f3e87096b0 sync manual
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2013-04-05 09:58:33 +02:00

116 lines
5.1 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This manual is for ponysay
(version 3.0.1).
Copyright (C) 2012, 2013 Mattias Andrée
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled
"GNU Free Documentation License". -->
<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ -->
<head>
<title>Ponysay: Metadata pasting</title>
<meta name="description" content="Ponysay: Metadata pasting">
<meta name="keywords" content="Ponysay: Metadata pasting">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="Concept-and-program-index.html#Concept-and-program-index" rel="index" title="Concept and program index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="The-tool-chest.html#The-tool-chest" rel="up" title="The tool chest">
<link href="Editing-metadata.html#Editing-metadata" rel="next" title="Editing metadata">
<link href="Fill-KMS-cache.html#Fill-KMS-cache" rel="previous" title="Fill KMS cache">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.indentedblock {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
div.smalllisp {margin-left: 3.2em}
kbd {font-style:oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nocodebreak {white-space:nowrap}
span.nolinebreak {white-space:nowrap}
span.roman {font-family:serif; font-weight:normal}
span.sansserif {font-family:sans-serif; font-weight:normal}
ul.no-bullet {list-style: none}
-->
</style>
<link rel="stylesheet" type="text/css" href="../../info.css"></head>
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<a name="Metadata-pasting"></a>
<div class="header">
<p>
Next: <a href="Editing-metadata.html#Editing-metadata" accesskey="n" rel="next">Editing metadata</a>, Previous: <a href="Fill-KMS-cache.html#Fill-KMS-cache" accesskey="p" rel="previous">Fill KMS cache</a>, Up: <a href="The-tool-chest.html#The-tool-chest" accesskey="u" rel="up">The tool chest</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-and-program-index.html#Concept-and-program-index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="Metadata-pasting-1"></a>
<h3 class="section">7.2 Metadata pasting</h3>
<a name="index-metadata-pasting"></a>
<a name="index-pony-metadata-pasting"></a>
<a name="index-pasting-metadata"></a>
<a name="index-pasting-pony-metadata"></a>
<a name="index-metadata-yanking"></a>
<a name="index-pony-metadata-yanking"></a>
<a name="index-yanking-metadata"></a>
<a name="index-yanking-pony-metadata"></a>
<a name="index-editing-metadata"></a>
<p><code>ponysay-tool</code> allows you to copy, remove, stash and apply stashed pony metadata
(but not merging, that must be done by hand.) The following commands does not support
additional options.
</p>
<a name="index-erase-metadata"></a>
<a name="index-remove-metadata"></a>
<a name="index-_002d_002dedit_002drm"></a>
<p><code>ponysay-tool --edit-rm PONY-FILE</code> will remove all metadata from the file
<code>PONY-FILE</code>. To just remove some data you must use <code>ponysay-tool --edit PONY-FILE</code>
or do it by hand. Note that you always use pony file, not pony names.
</p>
<a name="index-copy-metadata"></a>
<a name="index-store-metadata"></a>
<a name="index-stash-metadata"></a>
<a name="index-_002d_002dedit_002dstash"></a>
<p><code>ponysay-tool --edit-stash PONY-FILE</code> will print all metadata from a file to stdout.
Cherry-picking cannot be done.
</p>
<a name="index-paste-metadata"></a>
<a name="index-apply-metadata"></a>
<a name="index-yank-metadata"></a>
<a name="index-_002d_002dedit_002dapply"></a>
<p><code>ponysay-tool --edit-apply PONY-FILE</code> replace all metadata in a file with the metadata
used provided in stdin.
</p>
<a name="index-copy-metadata-1"></a>
<p>To copy the metadata from one pony to another (and remove the old metadata) you will have to
pipe the stashing and the applying command:
<code>ponysay-tool --edit-stash SOURCE-PONY-FILE | ponysay-tool --edit-apply TARGET-PONY-FILE</code>
</p>
</body>
</html>