{"id":10868,"date":"2021-12-06T12:59:35","date_gmt":"2021-12-06T12:59:35","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=10868"},"modified":"2021-12-06T12:59:52","modified_gmt":"2021-12-06T12:59:52","slug":"solved-windows-equivalent-to-unix-cat","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/windows-equivalent-to-unix-cat\/28867.html","title":{"rendered":"Solved Windows Equivalent To UNIX &#8216;Cat&#8217;"},"content":{"rendered":"<p>Hi!<br \/>\nI want to print code files for a training program. I would like to have line numbers in the printout for each file. All files are text files.<br \/>\nOn *nix, I can do<br \/>\ncat -n filename &gt;filename.linenos<br \/>\nand then print the filename.linenos file. Is there an equivalent command on DOS\/Windows which can allow me to do this?<br \/>\nThanks!<br \/>\n~ rajeev<br \/>\nNOTE: Despite what the title says, what I need is the equivalent of the UNIX &#8216;cat&#8217; command on Windows.<\/p>\n<p align=\"right\"><span style=\"font-size: xx-small;\"><i>edited by moderator: Fixed title -Razor2.3<\/i><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":6},"question-category":[55],"question_tags":[],"class_list":["post-10868","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/10868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=10868"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=10868"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=10868"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=10868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}