gcc

File Read

gcc -x c -E /path/to/input-file

The file is read and parsed as a list of files (one per line), the content is displayed as error messages.

gcc @/path/to/input-file

File Write

This actually deletes the file.

gcc -x c /dev/null -o /path/to/input-file

Shell

In some older versions, the `x` argument must instead reference any existing file.

gcc -wrapper /bin/sh,-s x