About 1,180,000 results
Open links in new tab
  1. Recursively look for files with a specific extension

    I'm trying to find all files with a specific extension in a directory and its subdirectories with my Bash (Ubuntu 10.04 LTS (Lucid Lynx) release). This is what's written in a script file: #!/bin/ba...

  2. Recursively find files with a specific extension - Stack Overflow

    Sep 6, 2014 · $ find . -name '*.h' -o -name '*.cpp' but I need to specify the name of the file itself besides the extensions. I just want to see if there's a possible way to avoid writing the file name again and …

  3. Windows command line search for exact extension with dir

    Apr 21, 2015 · When I do a search: dir /b /s *.txt I get all files/folders with the extension .txt. But I also get them when they have an extension like .txtx. How can I search for the exact extension?

  4. How to find files by file type? - Unix & Linux Stack Exchange

    Nov 24, 2018 · The find command above will find all regular files in or below the current directory, and for each such file call a short in-line shell script. This script runs file -bi on the found file and exits with …

  5. How to find all files with a particular extension? [duplicate]

    Benjamin you can use it to find any extension. @GKE its one line, and it will list all of the files in the current working directory of a particular extension.

  6. unix - How to use find command to find all files with extensions from ...

    find /path/to/ -type f -print0 | xargs -0 file | grep -i image This uses the file command to try to recognize the type of file, regardless of filename (or extension).

  7. How to retrieve recursively any files with a specific extensions in ...

    For a specific folder, I need to list all files with extension .js even if nested in subfolders at any level. The result for the output console should be a list of file names with no extension lin...

  8. linux - How can I recursively find all files in current and subfolders ...

    Aug 17, 2016 · How can I recursively find all files in current and subfolders based on wildcard matching?

  9. How to use find command to search for multiple extensions

    I can get all jpg images by using: find . -name "*.jpg" But how can I add png files to the results as well?

  10. python - Extracting extension from filename - Stack Overflow

    Nov 23, 2019 · I know it's not semantically any different, but I personally find the construction _, extension = os.path.splitext(filename) to be much nicer-looking.