Grep Test

Run Settings
LanguageBash
Language Version
Run Command
echo "banlsdjfklasdj ld dfl BACKUP TO NASBACKUP stopped." > foo.txt x=`grep -i -o -P '.{0,28}BACKUP TO NASBACKUP stopped.' foo.txt` if [[ $x == *"BACKUP TO NASBACKUP stopped."* ]] then echo "Backup Stopped!Something Wrong.." "$x" echo -e "new entry" > foo.txt exit 2 else echo "All ok" exit 0 fi
Editor Settings
Theme
Key bindings
Full width
Lines