 music |
 | � | OSdata.com |
basename
summary
����This subchapter looks at basename in Linux/UNIX.
basename
����This subchapter looks at basename in Linux/UNIX.
����The basename command removes the directory and (optionally) file extension (or suffix) from a file name.
removing directory
����Remove the diretcory portion of a filename with this command:
����$ basename filename
����Don�t forget to use some form of escaping as needed.
����$ basename "/home/local/bigfile.txt"
����bigfile.txt
����$
removing file suffix
����Remove the file suffix portion of a filename with this command:
����$ basename filename suffix
����And an example:
����$ basename "/home/local/bigfile.txt" ".txt"
����bigfile
����$
����Note that the suffix portion can be any text. This means you can use this command to remove the last portion of any text:
����$ basename "Los Angeles, CA" ", CA"
����Los Angeles
����$
comments, suggestions, corrections, criticisms
free music player coding example
����Coding example: I am making heavily documented and explained open source code for a method to play music for free � almost any song, no subscription fees, no download costs, no advertisements, all completely legal. This is done by building a front-end to YouTube (which checks the copyright permissions for you).
����View music player in action: www.musicinpublic.com/.
����Create your own copy from the original source code/ (presented for learning programming).
This section is under the category of owning cirticism.
In response to a posting about my article collecting social media, Moderator +Andrew Smith (Technology addict, Web Developer, API guru, futsal and football wannabe, and all round nice guy!, Swordfox Design, arrowtown, new zealand) of the Google+ community Web Developers, Web Designers, Web Coding claims �Quite frankly this is self promotion, and your site is not of great quality. I can see how +Joost Schuur� would think this of not high enough a standard.�
Because I no longer have the computer and software to make PDFs, the book is available as an HTML file, which you can convert into a PDF.
����Names and logos of various OSs are trademarks of their respective owners.