Thicket data repository for the EEG
1{ 2 "id": "https://mort.io/blog/tar-includes/", 3 "title": "Tarballing some files", 4 "link": "https://mort.io/blog/tar-includes/", 5 "updated": "2021-08-25T00:00:00", 6 "published": "2021-08-25T00:00:00", 7 "summary": "<p>I recently discovered, to some irritation, that the <code>--include PATTERN</code> option\nto <code>tar</code> seems only to apply to directories \u2013 and if the <code>PATTERN</code> doesn\u2019t\nmatch, it won\u2019t traverse subdirectories. But I wanted to include <code>*.php</code> for\nsome reason. So instead pipe the output of <code>find</code>, or better these days,\n<a href=\"https://github.com/sharkdp/fd\"><code>fd</code></a>:</p>\n<pre><code><span><span><span>fd</span></span><span><span><span> -</span>e</span> php<span><span> -</span>0</span></span> <span>|</span> <span><span>tar</span></span><span><span><span> -</span>cvjf</span> TARBALL.bz2<span><span> --</span>null</span><span><span> --</span>files-from</span> -</span>\n</span></code></pre>", 8 "content": "<p>I recently discovered, to some irritation, that the <code>--include PATTERN</code> option\nto <code>tar</code> seems only to apply to directories \u2013 and if the <code>PATTERN</code> doesn\u2019t\nmatch, it won\u2019t traverse subdirectories. But I wanted to include <code>*.php</code> for\nsome reason. So instead pipe the output of <code>find</code>, or better these days,\n<a href=\"https://github.com/sharkdp/fd\"><code>fd</code></a>:</p>\n<pre><code><span><span><span>fd</span></span><span><span><span> -</span>e</span> php<span><span> -</span>0</span></span> <span>|</span> <span><span>tar</span></span><span><span><span> -</span>cvjf</span> TARBALL.bz2<span><span> --</span>null</span><span><span> --</span>files-from</span> -</span>\n</span></code></pre>", 9 "content_type": "html", 10 "author": { 11 "name": "Unknown", 12 "email": null, 13 "uri": null 14 }, 15 "categories": [], 16 "rights": null, 17 "source": "https://mort.io/atom.xml" 18}