Horje
exit status bash Code Example
To set the exit status of a shell script

#!/bin/sh
if cp "$1" "$1.bak"
then
    vi "$1"
    exit   # USE STATUS FROM vi
else
    echo "bkedit quitting: can't make backup?" 1>&2
    exit 1
fi
exit status bash
echo $? # to print last command exit status




Shell

Related
opensuse package manager command line Code Example opensuse package manager command line Code Example
what is regedit in windows Code Example what is regedit in windows Code Example
txt file open command linux Code Example txt file open command linux Code Example
generate signing key android Code Example generate signing key android Code Example
Debian restart service Code Example Debian restart service Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10