{"id":1912,"date":"2022-01-19T09:18:51","date_gmt":"2022-01-19T14:18:51","guid":{"rendered":"http:\/\/www.both.org\/?p=1912"},"modified":"2024-09-03T13:04:32","modified_gmt":"2024-09-03T17:04:32","slug":"creating-test-files","status":"publish","type":"post","link":"https:\/\/www.both.org\/?p=1912","title":{"rendered":"Creating test files"},"content":{"rendered":"<div class=\"pld-like-dislike-wrap pld-template-1\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"\" data-post-id=\"1912\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                        <i class=\"fas fa-thumbs-up\"><\/i>\r\n                <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><\/div>\n<p>Some of my books and articles require you to create some files for testing. This can be done easily from the command line. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open a terminal session on your desktop.<\/li>\n\n\n\n<li>Copy the line below from this post.<\/li>\n\n\n\n<li>Paste it into the terminal session.<\/li>\n\n\n\n<li>Press the <strong>Enter<\/strong> key.<\/li>\n<\/ul>\n\n\n\n<p>This Bash program creates 200 files with &#8220;Hello world filexxx&#8221; in each, where xxx is the file number. You can edit the program and change &#8220;200&#8221; to any number of files that you need.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted has-normal-font-size\"><strong>for X in `seq -w 200` ; do echo \"Hello world file$X\" > testfile$X.txt ; done<\/strong><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some of my books and articles require you to create some files for testing. This can be done<\/p>\n","protected":false},"author":2,"featured_media":2381,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":"","footnotes":""},"categories":[5],"tags":[],"class_list":["post-1912","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"modified_by":"David Both","_links":{"self":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/1912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1912"}],"version-history":[{"count":6,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/1912\/revisions"}],"predecessor-version":[{"id":7333,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/posts\/1912\/revisions\/7333"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=\/wp\/v2\/media\/2381"}],"wp:attachment":[{"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.both.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}