Computer scienceSystem administration and DevOpsCommand lineBash syntax

Braces and parentheses

Double square brackets

Report a typo

What is the output of the following Bash command?

#!/usr/bin/env bash

path='/local/user'

if [[ $path != *root* ]]; then
    rm ${1}
    echo "Specified file/directory was deleted"
else
    echo "Specified file/directory was NOT deleted"
fi
Enter a short text
___

Create a free account to access the full topic