About 369,000 results
Open links in new tab
  1. shell - What is the Bash file extension? - Stack Overflow

    Jan 7, 2015 · MS Windows generally uses a file's extension to determine how to open/execute it. Binary executables need to have a .exe extension. If you have a UNIX-like shell installed …

  2. Use .sh or .bash extension for Bash scripts? - Unix & Linux Stack …

    Feb 4, 2015 · 38 does using the .bash extension actually invoke bash or does it depend on system config / 1st shebang line. If you do not use an interpreter explicitly, then the interpreter …

  3. Extract filename and extension in Bash - Stack Overflow

    Jun 8, 2009 · Here is the algorithm I used for finding the name and extension of a file when I wrote a Bash script to make names unique when names conflicted with respect to casing.

  4. linux - What's a .sh file? - Stack Overflow

    Typically a .sh file is a shell script which you can execute in a terminal. Specifically, the script you mentioned is a bash script, which you can see if you open the file and look in the first line of …

  5. How to check the extension of a filename in a bash script?

    Jan 2, 2009 · You can use the "file" command if you actually want to find out information about the file rather than rely on the extensions. If you feel comfortable with using the extension you can …

  6. bash - Grabbing the extension in a file name - Unix & Linux Stack …

    To make my question clear, I was creating a bash script to extract any given archive just by a single command of extract path_to_file. How to extract the file is determined by the script by …

  7. How do you suffix the end of a bash file? - Stack Overflow

    Apr 20, 2014 · These are called file extensions. By convention, shell scripts including Bash scripts get a .sh extension (for "SHell script"). Note that this is not a requirement for the script to …

  8. File extensions for unix shell scripts

    Intentionally portable files can usually use the least featureful shell's name/extension (and in the very small corner case of for example supporting both bash and zsh but nothing else, you …

  9. An official standard / convention for a file extension for shell ...

    Aug 1, 2016 · Update This question does not ask about any opinion. I clearly stated that I would like to know if there is a standardized file extension for this kind of scripts. This question is …

  10. Extract file basename without path and extension in bash

    Apr 19, 2010 · Closer @tripleee: this is not a duplicate of Extract filename and extension in Bash. The other more complex Q requires the extension and filename be separate. If anything, the …