{"id":123,"date":"2005-10-12T00:45:47","date_gmt":"2005-10-11T16:45:47","guid":{"rendered":"http:\/\/yesybl.org\/blogcn\/2005\/10\/12\/123\/"},"modified":"2005-10-12T00:45:47","modified_gmt":"2005-10-11T16:45:47","slug":"uyemp3ecuadhiuaa-2","status":"publish","type":"post","link":"https:\/\/www.yesybl.com\/?p=123","title":{"rendered":"\u9012\u5f52\u521b\u5efaMP3\u6b4c\u66f2\u5217\u8868\u7684\u811a\u672c"},"content":{"rendered":"<p><font class=\"content\"><br \/>\n\t\t#!\/bin\/sh<br \/>\n#The&#160;script is used for create&#160;lists&#160;for&#160;mp3&#160;songs.<br \/>\n#Each directory&#160;has&#160;its&#160;own&#160;mp3&#160;songs&#160;list.<br \/>\n#Author:&#160;Binglin&#160;Yang<br \/>\n#Date:&#160;11\/10\/2005<\/p>\n<p>#set&#160;the&#160;primary&#160;directory<br \/>\nTHEPRIMARYDIR=$PWD<\/p>\n<p>createList()<br \/>\n{<br \/>\n&#160;&#160;&#160;&#160;for&#160;dirName&#160;in&#160;*<br \/>\n&#160;&#160;&#160;&#160;do<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;if&#160;[&#160;-d&#160;$dirName&#160;]<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;then<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cd&#160;$dirName<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;createList<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ls&#160;*.[Mm][Pp]3 &gt; \/tmp\/mp3Index.$$&#160;2&gt;\/dev\/null<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if&#160;[&#160;-s&#160;\/tmp\/mp3Index.$$&#160;]<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;then<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;echo &quot;Now&#160;creating&#160;the&#160;songs.m3u for&#160;music&#160;directory&#160;$PWD&quot;<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ls&#160;*.[Mm][Pp]3&#160;&amp;gt;&#160;songs.m3u<br \/>\n#&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cat&#160;songs.m3u &amp;gt;&amp;gt;&#160;$THEPRIMARYDIR\/All_songs.txt<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cd&#160;..<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;else<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cd&#160;..<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fi<br \/>\n&#160;&#160;&#160;&#160;&#160;&#160;&#160;fi<br \/>\n&#160;&#160;&#160;&#160;done<br \/>\n}<\/p>\n<p>createList<\/p>\n<p>ls&#160;*.[Mm][Pp]3 &gt; &quot;\/tmp\/mp3Index.$$&quot; 2&gt; \/dev\/null<br \/>\nif&#160;[&#160;-s &quot;\/tmp\/mp3Index.$$&quot; ]<br \/>\n&#160;&#160;&#160;&#160;then<br \/>\n&#160;&#160;&#160;&#160;echo &quot;Now&#160;creating&#160;the&#160;songs.m3u for&#160;music&#160;directory&#160;$PWD&quot;<br \/>\n&#160;&#160;&#160;&#160;ls&#160;*.[Mm][Pp]3 &gt; songs.m3u<br \/>\n#&#160;&#160;&#160;cat&#160;songs.txt &gt; $THEPRIMARYDIR\/All_songs.txt<br \/>\nfi<br \/>\nrm&#160;-f &quot;\/tmp\/mp3Index.$$&quot;<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<a href=\"https:\/\/www.yesybl.com\/?p=123\" rel=\"bookmark\" title=\"Permalink to \u9012\u5f52\u521b\u5efaMP3\u6b4c\u66f2\u5217\u8868\u7684\u811a\u672c\"><p>#!\/bin\/sh #The&#160;script is used for create&#160;lists&#160;for&#160;mp3&#160;songs. #Each directory&#160;has&#160;its&#160;own&#160;mp3&#160;songs&#160;list. #Author:&#160;Binglin&#160;Yang #Date:&#160;11\/10\/2005 #set&#160;the&#160;primary&#160;directory THEPRIMARYDIR=$PWD createList() { &#160;&#160;&#160;&#160;for&#160;dirName&#160;in&#160;* &#160;&#160;&#160;&#160;do &#160;&#160;&#160;&#160;&#160;&#160;if&#160;[&#160;-d&#160;$dirName&#160;] &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;then &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cd&#160;$dirName &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;createList &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ls&#160;*.[Mm][Pp]3 &gt; \/tmp\/mp3Index.$$&#160;2&gt;\/dev\/null &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;if&#160;[&#160;-s&#160;\/tmp\/mp3Index.$$&#160;] &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;then &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;echo &quot;Now&#160;creating&#160;the&#160;songs.m3u for&#160;music&#160;directory&#160;$PWD&quot; &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;ls&#160;*.[Mm][Pp]3&#160;&amp;gt;&#160;songs.m3u #&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cat&#160;songs.m3u &amp;gt;&amp;gt;&#160;$THEPRIMARYDIR\/All_songs.txt &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cd&#160;.. &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;else &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;cd&#160;.. &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;fi &#160;&#160;&#160;&#160;&#160;&#160;&#160;fi &#160;&#160;&#160;&#160;done } createList ls&#160;*.[Mm][Pp]3 &gt; &quot;\/tmp\/mp3Index.$$&quot; 2&gt; \/dev\/null if&#160;[&#160;-s &quot;\/tmp\/mp3Index.$$&quot; ] &#160;&#160;&#160;&#160;then &#160;&#160;&#160;&#160;echo &quot;Now&#160;creating&#160;the&#160;songs.m3u for&#160;music&#160;directory&#160;$PWD&quot; &#160;&#160;&#160;&#160;ls&#160;*.[Mm][Pp]3 &gt; songs.m3u #&#160;&#160;&#160;cat&#160;songs.txt [&hellip;]<\/p>\n<\/a>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pa4z28-1Z","_links":{"self":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/posts\/123"}],"collection":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=123"}],"version-history":[{"count":0,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=\/wp\/v2\/posts\/123\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yesybl.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}