{"id":1187,"date":"2010-09-16T07:38:14","date_gmt":"2010-09-16T00:38:14","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=1187"},"modified":"2010-09-16T07:38:14","modified_gmt":"2010-09-16T00:38:14","slug":"splitting-large-file-into-several-smaller-files","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=1187","title":{"rendered":"splitting large file into several smaller files"},"content":{"rendered":"<p style=\"text-align: justify;\">A few days ago I need to split some large apache log files (1Gb log file) into several smaller file so I can read it using normal text editor for further investigating the mod_limitipconn purposes. To split large file into several smaller files, you can use <strong>split<\/strong> command in linux. Just follow the steps below and you will be able to split large file into smaller files.<\/p>\n<p>{code}$ split &#8211;bytes=1m \/path\/to\/large\/file \/path\/to\/output\/file\/prefix{\/code}<\/p>\n<p style=\"text-align: justify;\">Done. You just split your large file into several smaller files. You can also change the output file size by changing the <strong>&#8211;bytes=1m<\/strong> to your preference. You can use b, k, or m. b represent bytes, k represent kilobytes, m represent megabytes.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/09\/Italian_beef_slicing.jpg\" rel=\"lightbox[1187]\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-1190 aligncenter\" title=\"Italian_beef_slicing\" src=\"http:\/\/www.jfdesignnet.com\/wp-content\/uploads\/2010\/09\/Italian_beef_slicing-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" \/><\/a>Hmmm &#8230; pastrami &#8230; nom nom<\/p>\n<p style=\"text-align: justify;\">To restore the original file, you can use <strong>cat<\/strong> command. To join all the smaller file to restore the original file type :<\/p>\n<p>{code}cat prefix* &gt; NEWFILENAME{\/code}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A few days ago I need to split some large apache log files (1Gb log file) into several smaller file so I can read it using normal text editor for further investigating the mod_limitipconn purposes. To split large file into several smaller files, you can use split command in linux. Just follow the steps below [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1190,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,9],"tags":[131,225],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/1187"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1187"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/1187\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/media\/1190"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}