Skip to content

Commit

Permalink
Fix: Process only .lang files.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed May 30, 2014
1 parent 33d2e86 commit 39c1064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/deduplicatefilelinesrecursively.sh
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit 39c1064

Please sign in to comment.