我在终端上运行了一个prova.c文件 我用命令行运行GCC:
if [[ $f != */.* ]]; then
echo "$f"
command-one || { echo 'Something went wrong with Command-one at file ' $f ' !' >> ../corrupted.txt } || error=1
command-two || { echo 'Something went wrong with Command-two at file ' $f ' !' >> ../corrupted.txt } || error=1
command-three || { echo 'Something went wrong with Command-three at file ' $f ' !' >> ../corrupted.txt } || error=1
if [ error == 0 ]
then
echo "====================================================" >> ../ok.txt
echo "All went well with: " $f >> ../ok.txt
fi
error=0
else
echo "This file is corrupted: " $f >> ../corrupted.txt
fi
prova.c:
gcc -Wall -std=c99 -E prova.c
标准输出:
int main(int argc, char* argv[]) {
int a=1;
int b=2;
return a+b;
}
开头的哈希每行是什么意思?
为什么我们需要它们来生成?
如果你有时间,我希望对每一行都有一个解释,而不是一般的答案。我知道其中一些是行标记
如果您知道有关共享主题的资源就会很棒。