{"id":2239,"date":"2017-12-08T05:31:55","date_gmt":"2017-12-08T05:31:55","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2239"},"modified":"2020-01-09T10:01:58","modified_gmt":"2020-01-09T10:01:58","slug":"shell-script-to-print-only-size-and-file-name-using-unix-command","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/shell-script-to-print-only-size-and-file-name-using-unix-command\/","title":{"rendered":"Shell script to Print only Size and file name using unix command."},"content":{"rendered":"<p><strong>rajeshkumar created the topic: Shell script to Print only Size and file name using unix command.<\/strong><\/p>\n<p>Shell script to Print only Size and file name using unix command.<\/p>\n<p><code>ls -l | tr -s \" \" \" \"| cut -d \" \" -f5,9<\/code><\/p>\n<p>Regards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n<p><strong>puneetbhatia77 replied the topic: Re: Shell script to Print only Size and file name using unix command.<\/strong><\/p>\n<p><code>The command should be<\/p>\n<p>ls -l | tr -s \" \" \" \"| cut -d \" \" -f5,8<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: Shell script to Print only Size and file name using unix command. Shell script to Print only Size and file name using unix command. ls -l | tr -s &#8221; &#8221; &#8221; &#8220;| cut -d &#8221; &#8221; -f5,9 Regards, Rajesh Kumar Twitt me @ twitter.com\/RajeshKumarIn puneetbhatia77 replied the topic: Re: Shell&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[454],"tags":[138],"class_list":["post-2239","post","type-post","status-publish","format-standard","hentry","category-shell-script","tag-shell"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2239"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2239\/revisions"}],"predecessor-version":[{"id":2240,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2239\/revisions\/2240"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}