You can use if statements without any brackets or within [] or [[]] or (). Example of each syntax is given below: If statement without any brackets: These are used to check the outcome of a command. It return the exist status of command executed after if. if grep -i oolala lyrics.txt then echo "lyrics.txt […]
Archive | bash shell scripting
RSS feed for this section