I am battling to run a shell script which has 3 scripts which it needs to call and execute one after each other as soon as the execution completes successfully (error:
gzip:.gz: unexpected end of file
)
The problem I have is that my first script decompresses gzip files using gunzip. But when this is run via my main script, it does not execute completely, and goes to the next script.
Below is the main shell script:
#!/bin/bash
./gunzip_files.sh
./grep_data_from_files.sh
This is what the gunzip_files shell script looks like:
#!/bin/bash
sudo gunzip *.gz
Aucun commentaire:
Enregistrer un commentaire