What is the difference between running a script as
./scriptname.sh and sh scriptname.sh
Answer / vidhu
while running the script using this "./" script run from
curent location we have to give executable permision to the
script file
By default file contains 644 permissions there is no
execute permission while running it shows error
use `chmod` to give execute permission and run
where as "sh" it runs the script with the help of default
shell
| Is This Answer Correct ? | 5 Yes | 4 No |
What does $0 mean in shell script?
What is the use of "$#" in shell scripting?
The information of the two files should be redirect to Third file in such a way that, the third file contain the information like this. 1st line in third file should be from 1st file 2nd line in Third file should be from 2nd file 3rd line in Third file should be from 1st file 4th line in Third file should be from 2nd file - - so on
Create a bash shell script that removes all files whose names end with a "~" from your home directory and subdirectories. Name this script "cleanup.sh"
What are the 3 standard streams in linux?
How does path variable work?
What does the sh command do?
How does shell scripting work?
I Forgot My Windows Vista Password! How Can I Find My Windows Lost Password?
wats the deinitions for shell utility and filter?
How do I open the shell prompt?
How to print some text on to the screen?