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 |
How to rename all the files in a folder having specific extension? Example: I have some files with extension (.txt) in a folder name 'Test'. I have to rename all the .txt files in a test and its subdirectories to .my extension.
What does it mean to debug a script?
Create a bash shell script to sort and then uniq the file from the command line & store it to a new file and output the results to the screen. Name this script "sortAndUniq.sh"
how to create purchase order
What is shell and shell script?
What is a boot block?
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
Create a bash shell script that reads in a number from the user. If the number is 1, print out the date. If the number is 2, list the files in the current directory. If the number is 3, print out who is currently logged onto the system. If the number is anything else, print out an error message and exit. Name this script "various.sh"
Is bash a shell script?
write a shell script to find the largest number from 3 given numbers.
What does debug script mean?