From 39c1064261d37b63990a93ddb8923448930ae487 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Fri, 30 May 2014 18:30:24 +0200 Subject: [PATCH] Fix: Process only .lang files. --- dev/deduplicatefilelinesrecursively.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/deduplicatefilelinesrecursively.sh b/dev/deduplicatefilelinesrecursively.sh index ad64e546829..a0eb14974f0 100755 --- a/dev/deduplicatefilelinesrecursively.sh +++ b/dev/deduplicatefilelinesrecursively.sh @@ -15,7 +15,7 @@ fi # To detect if [ "x$1" = "xlist" ] then - for file in `find . -type f` + for file in `find . -type f -name *.lang` do if [ `sort "$file" | uniq -d | wc -l` -gt 0 ] then @@ -27,7 +27,7 @@ fi # To fix if [ "x$1" = "xfix" ] then - for file in `find . -type f` + for file in `find . -type f -name *.lang` do awk -i inplace ' !x[$0]++' "$file" done; -- GitLab