#!/bin/bash for file in $1*/**/* do if [[ "$file" != *.a ]] ;then echo $file ./ft_nm $2 $file 2>&1 | cat > a nm $2 $file 2>&1 | cat > b diff a b fi done