find all regular files exclude .o and exclude *.swp and output line number of soc_attach if it has
find .  \( ! -path "./output/*" \) -a \( -type f \) -a \( ! -name '*.o' \) -a \( ! -name '*.swp' \) | xargs grep -n soc_attach