About 541,000 results
Open links in new tab
  1. Extract filename and extension in Bash - Stack Overflow

    Jun 8, 2009 · For filenames without extension (called suffix in the remainder of this answer), extension=${filename##*.} returns the input filename rather than an empty string.

  2. string - How do I get the filename without the extension from a …

    Why do you resolve() the path? Is it really possible to get a path to a file and not have the filename be a part of the path without that? This means that if you're give a path to symlink, …

  3. python - Extracting extension from filename - Stack Overflow

    Nov 23, 2019 · Is there a function to extract the extension from a filename?

  4. How can I get file extensions with JavaScript? - Stack Overflow

    Oct 10, 2008 · The "unacceptable" positions of dot in the filename are -1 and 0, which respectively refer to names with no extension (e.g. "name") and to names that start with dot …

  5. How can I replace (or strip) an extension from a filename in Python?

    Note that using rsplit will result in different results for files which start with a dot and have no other extension (like hidden files on Linux, e.g. .bashrc). os.path.splitext returns an empty extension …

  6. How to trim a file extension from a String in JavaScript?

    Nov 23, 2010 · This works for any length of file extension (.txt or .html or .htaccess) and also allows for the file name to contain additional period (.) characters. It wouldn't handle eg .tar.gz …

  7. powershell - extract file name and extension - Stack Overflow

    Mar 20, 2012 · I need to extract file name and extension from e.g. my.file.xlsx. I don't know the name of file or extension and there may be more dots in the name, so I need to search the …

  8. Removing path and extension from filename in PowerShell

    Sep 20, 2012 · Here I prefer to use Substring () instead of Replace () because the extension preceded by a period could also be part of the name, as in my example. By using Substring …

  9. CreateProcess error=206, The filename or extension is too long …

    CreateProcess error=206, The filename or extension is too long Use this below gradle.build code snippet to fix the above problem in IntelliJ or STS, or eclipse anything.

  10. Batch: Remove file extension - Stack Overflow

    For instance %~dpn0 will return the path of the batch file without its extension, %~dpn1 will be %1 without extension, etc. Whereas %~n0 will return the name of the batch file without its …