dovrebbe andare

grep -n [.]* nomefile | grep X