#!/bin/bash FILE=/etc/motD FILE2=/var/run/motd FILE3=/etc/motd function boot { apt-cache search apache | grep tomcat ;} if [ -f $FILE ]; then echo el fichero $FILE existe else if [ -f $FILE2 = $FILE3 ]; then echo /etc/motd y /var/run/motd son iguales else echo /etc/motd y /var/run/motd son diferentes fi fi