aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/from_folder10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/from_folder b/scripts/from_folder
new file mode 100755
index 0000000..b72899f
--- /dev/null
+++ b/scripts/from_folder
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+FOLDER=linux/arch
+
+CONF=`find $FOLDER -name Kconfig | xargs grep -e ^config | cut -d ' ' -f2`
+
+REG=`echo $CONF | tr " " "|" | sed 's/^/\(/' | sed 's/$/\)/'`
+
+#egrep "$REG" $1
+egrep -v "$REG" $1 > $2