mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 20:42:04 +00:00
7 lines
261 B
Bash
7 lines
261 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
ROOT_PATH=$(git rev-parse --show-toplevel)
|
||
|
|
||
|
# Find duplicate include directives
|
||
|
find $ROOT_PATH/dbms -name '*.h' -or -name '*.cpp' | while read file; do grep -P '^#include ' $file | sort | uniq -c | grep -v -P '^\s+1\s' && echo $file; done
|