---
title: "Comment by Ian Njuguna on \"Write a script that runs a C file through the preprocessor and saves the result into another file\" | Hashnode"
description: "Reading this has saved me ~2hrs of searching for an answer because I was at &quot;What options should I use with the GCC compiler to get the preprocessor interm"
url: "https://hashnode.com/posts/script-that-runs-a-c-file-through-the-preprocessor/6299d9bcf53c6623956c6459/comment/6338223efa20fa4bc8e5721b"
---

[Discussion](https://hashnode.com/posts/script-that-runs-a-c-file-through-the-preprocessor/6299d9bcf53c6623956c6459)

Comment [Write a script that runs a C file through the preprocessor and saves the result into another file](https://hashnode.com/posts/script-that-runs-a-c-file-through-the-preprocessor/6299d9bcf53c6623956c6459)

[Ian Njuguna](https://hashnode.com/@iano10x)

[Oct 1, 2022](https://hashnode.com/posts/script-that-runs-a-c-file-through-the-preprocessor/6299d9bcf53c6623956c6459/comment/6338223efa20fa4bc8e5721b)

Reading this has saved me ~2hrs of searching for an answer because I was at "What options should I use with the GCC compiler to get the preprocessor intermediate file?" Then I googled and bumped into this very instrumental article.

[Dr. Ehoneah Obed](https://hashnode.com/@ehoneahobed)

[Oct 5, 2022](https://hashnode.com/posts/script-that-runs-a-c-file-through-the-preprocessor/6299d9bcf53c6623956c6459/comment/6338223efa20fa4bc8e5721b#reply-633dbb2612186eae2bef8cee)

Happy to be of help and I am glad you found it when you needed it.
