{
    "version": "https:\/\/jsonfeed.org\/version\/1",
    "title": "M9K blog: заметки с тегом find",
    "_rss_description": "Заметки обо всём: devops, lifestyle, культура.",
    "_rss_language": "ru",
    "_itunes_email": "",
    "_itunes_categories_xml": "",
    "_itunes_image": "",
    "_itunes_explicit": "",
    "home_page_url": "https:\/\/blog.m9k.space\/tags\/find\/",
    "feed_url": "https:\/\/blog.m9k.space\/tags\/find\/json\/",
    "icon": "https:\/\/blog.m9k.space\/user\/userpic@2x.jpg?1769095194",
    "author": {
        "name": "M",
        "url": "https:\/\/blog.m9k.space\/",
        "avatar": "https:\/\/blog.m9k.space\/user\/userpic@2x.jpg?1769095194"
    },
    "items": [
        {
            "id": "58",
            "url": "https:\/\/blog.m9k.space\/all\/udalenie-faylov-v-direktorii-po-prefiksam-v-cikle\/",
            "title": "Удаление файлов в директории по префиксам в цикле",
            "content_html": "<p>Задача: удалить файлы в директории, содержащие определённый префикс, кроме последних N новых.<\/p>\n<pre class=\"e2-text-code\"><code class=\"\">#!\/bin\/bash\r\nname=(prefix1_*.type prefix2_*.type prefix3_*.type)\r\npath=&quot;\/home\/test&quot;\r\nfor value in &quot;${name[@]}&quot; \r\ndo \r\nfind &quot;$path&quot; -maxdepth 1 -type f -name &quot;$value&quot; | sort -rn | tail -n +6 | xargs rm -rf;\r\ndone<\/code><\/pre>",
            "date_published": "2020-10-27T15:11:27+00:00",
            "date_modified": "2020-10-31T12:43:03+00:00",
            "_date_published_rfc2822": "Tue, 27 Oct 2020 15:11:27 +0000",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "58",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [
                    "system\/library\/highlight\/highlight.js",
                    "system\/library\/highlight\/highlight.css"
                ],
                "og_images": []
            }
        }
    ],
    "_e2_version": 3877,
    "_e2_ua_string": "E2 (v3877; Aegea)"
}