Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ $1 ] ; then
- if [ `cat $1 | grep 'ifdef\|ifndef' | wc -l` != `cat $1 | grep endif | wc -l` ] ; then
- echo "Ну что, доигрался?"
- else
- echo "Ошибка не найдена"
- fi
- else
- echo "Не указано имя файла"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement