get the lists

I expert,

I may cross post something similar but I dirtyed my quesion somehow to be clear in the thread

#cat file1
88dee gcc: Grok for callconvention-hard to enable hard float
a2ad2 eglibc: package mtrace separately
61487 python: bump PR of packages after update of distutils.bbclass
29916 binutils: Drop old/stale/broken csl recipe
f0ad3 binutils: use new update-alternatives
7b1ca binutils_2.22: Backport to fix bogus textrels
#cat file2
glibc: package mtrace separately
binutils: Drop old/stale/broken csl recipe
binutils_2.22: Backport to fix bogus textrels

I want to get the list, which means it only show the file1's id only when file2 is not in file1

88dee
61487
f0ad3
$  fgrep -v -f file2  file1 | awk '{print $1}'
88dee
61487
f0ad3