Skip to content

Instantly share code, notes, and snippets.

@foxyseta
Created July 20, 2022 20:39
Show Gist options
  • Save foxyseta/41ff3be0ce60227b90ff67344112d102 to your computer and use it in GitHub Desktop.
Save foxyseta/41ff3be0ce60227b90ff67344112d102 to your computer and use it in GitHub Desktop.
Preprocesses every .c file in the current folder using ../include/ as headers directory
for file in *.c; do gcc -E -P -I ../include/ -o `expr substr $file 1 \( \( length $file \) - 2 \)`.i $file; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment