Is it possible to write Bash scripts not in the Linux console, but directly in any executable files, as is possible in Windows, in batch files?
Yes there is:
> echo '#!/bin/sh\n echo "Hello world!"' > script.sh > sh script.sh Hello world! > chmod +x script.sh > ./script.sh Hello world!
Expansion is of course not important. The execution bit is also optional (for it, only shebang is written).
Source: https://ru.stackoverflow.com/questions/132963/More articles:How to create an “infinite” table?What is better to use XML or JSON?Database access via SSH tunnel in C # MySQLClientWYSISYG editor for DjangoUnavailability of the wpf component.Java and windows registryOutput the largest values.Add id to POST requestCalling a function when an item is selected in selectCorrection of incorrect encodingAll Articles