If none of your file names have extensions, file extensions are hidden. WordPerfect (the numbers following represent the version #) Lotus 1-2-3 (the numbers following represent the version #) This has been an issue for eons that is easily avoided if you just dont use spaces. If you have a program that requires an environment variable that doesnt match the shell restrictions, launch it with the env program. For example, OS X allows certain symbols in filenames that Windows does not. Only ASCII letters (of either case), and digits are supported, and the first character must not be a digit. PageMaker (the numbers following represent the version #) P=publication, T=templateĪSCII text (Mac text does not contain line feeds-use DOS Washer Utility to fix) 10 Answers Sorted by: 87 Ive never met a Bourne-style shell that allowed - in a variable name. See Showing File Extensions File ExtensionĬomma separated, variable length file (Open in Excel)įilemaker Pro databases (the numbers following represent the version #) Note: If none of your file names have extensions, file extensions are hidden. If the file extension you are using is not listed below, you may find the information by looking in the software manual or software application's Web site. Note: This list is by no means a complete and exhaustive list of file extensions. For example, if you have a Word 6 MAC OS X document named letter that you want to open in Windows, you need to rename the file letter.docx so that Word in Windows will recognize and open the file. If you want to open a MAC OS X file in Windows, you may need to add the extension to a MAC OS X file name so Windows can recognize it. For example, the doc extension tells your computer that the file is a Microsoft Word file. For example, in letter.docx the filename is letter and the extension is docx. Extensions are important because they tell your computer what icon to use for the file, and what application can open the file. The extension is a three- or four-letter abbreviation that signifies the file type. So: ls - (with the perl-based rename command) rename -n 's/-//' - Remove the -n once you are happy that it is doing the right thing. I doubt this or even a bumper sticker campaign would prevent people from putting spaces in filenames, but if you want to help yourself, more power to you and thank you on behalf of those of us who care.Windows file names have two parts the file's name, then a period followed by the extension (suffix). 1 Answer Sorted by: 11 You can usually use - to indicate the end of command options. You can get around this by changing the BASH shell's IFS variable or using the find command, but its an annoyance and a lot of people don't know this, so it can cause problems. If any of the mp3 files matched by that wildcard have spaces in their name, it will cause the filename to be broken up into sections instead of the whole. Spaces cause problems for people who want to use the command line in advanced ways such as in for loops like this: for file in *.mp3 do mpg321 $file -w - | oggenc -o $.ogg - done For instance, if you have a file called "A picture taken in Winston-Salem, NC.jpg" and you want to convert the spaces to underscores, then you can preserve the hyphen in the name and retain its meaning. But since hyphens might show up in other ways such as hyphenated words, you'll have more success in preserving a name value by using underscores. Underscores are usually the convention that people use when replacing spaces, although hyphens are fine too I'd say. My recommendation is to use underscores instead of spaces.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |